Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: 4.0.0 is incompatible with firebase/php-jwt >= 6.6.0 #75

Open
nymo opened this issue Oct 16, 2023 · 0 comments
Open

Warning: 4.0.0 is incompatible with firebase/php-jwt >= 6.6.0 #75

nymo opened this issue Oct 16, 2023 · 0 comments

Comments

@nymo
Copy link

nymo commented Oct 16, 2023

Unfortunately today I tripped into a problem with incompatible version.
So it seems that in the firebase jwt library in version 6.6.0 and upwards a change in the decode method was introduced where values are passed by reference.

public static function decode(
        string $jwt,
        $keyOrKeyArray,
        stdClass &$headers = null
    ): stdClass {

This is in Version 4.0.0 of the keyycloak not working because the decode method is called with an array. It seems to be fixed in Version 5.0.0.

So when you use this library in 4.0.0 make sure that the php-jwt library is pinned at < 6.6.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant