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
Latest version of lcobucci/jwt is throwing deprecation messages breaking /oauth/token #1156
Comments
it just fixes with add this to the Edit: this is a temporary fix for this errors |
this should do as a temporary solution, but the latest version that won't break because of the exact same reason for now would be |
This is already being handled in #1146. Please check lcobucci/jwt#550 (comment) for the rationale and suggestions on how to upgrade. |
This is needed until simple_oauth uses new version of thephpleague/oauth2-server. See thephpleague/oauth2-server#1156
I've now released version 8.2.0 of the oauth2-server package. If you are running PHP 7.3 or greater, you can install version 8.2.0 to resolve this issue. If you are below PHP 7.3, please ensure you have error notifications turned off on production as deprecation notices should not be turned on for production environments. I hope this resolves your issues but if you have any follow up queries please do shout. Cheers |
Hello, I'm new to these kinds of issues & have read all this but the error is still there. I'd appreciate some more detail on how to fix this please. Make a change to some composer file somewhere and then what? |
It is my understanding that these ought to fix the error: "require": {
"laravel/passport": "^9.4.0",
"lcobucci/jwt": "3.4.2",
"league/oauth2-server": "8.2.4"
} Possibly some older, and maybe you don't use one of those (e.g. not using Laravel 👍). First check with |
@guitar-freq can you upgrade to the latest version? If you can, you should. If you aren't able to, you should turn off your deprecation notices on your production environment as these shouldn't be on. Which server do you use? |
The standard "/oauth/token" route now longer works as the newly added deprecation messages are interrupting the flow, which were added in lcobucci/jwt at:
lcobucci/jwt@5ce37ae
It's being tracked in that repository at:
lcobucci/jwt#550
The text was updated successfully, but these errors were encountered: