-
Notifications
You must be signed in to change notification settings - Fork 777
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
Laravel 5.6.30 breaks passport #795
Comments
Just to link in the context:
A temporary workaround within an individual app, until Passport no longer expects to deserialize, is to add
to |
Had to add that to |
Opened a PR to introduce a way to stop unserializing the cookie value: |
@themsaid please don't forger about laravel/passport 4.0, the latest one supported by Laravel 5.5 LTS |
@plakhin can you backport this PR to it? |
@themsaid I'm to busy until next week. If no one will do, then I do, but a bit later. |
I had this for version 4.0 and tried to composer update but it did not download the update, I had to target it directly
|
this was driving me nutts for a couple of hours. @simondavies the version 5 will work just clear your cookies after adding in |
@prolonginc Why would you do that? That is just disabling the security fix. Version 5.0 is for Laravel 5.6 and not 5.5 @taylorotwell Can we not just get a version 4.0.4 tagged on the 4.0 branch?? |
Could an artisan command be created to do this update for users? instead of breaking upon composer update? Just wondering didn't know if that would be a viable option. |
This issue made me tilt the whole day |
If you have updated Laravel\Passport you should follow this:
Using |
I don't understand why Laravel serialize the cookie however... |
If you don't serialize the cookies this breaks passport authentication. On line 190 in
src/Guards/TokenGuard.php
.This is only the case if you make use of your passport api on your own site. (https://laravel.com/docs/5.6/passport#consuming-your-api-with-javascript)
The text was updated successfully, but these errors were encountered: