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

Passport actingAs test method broken in 8.20.0 #35696

Closed
aaronhuisinga opened this issue Dec 22, 2020 · 3 comments
Closed

Passport actingAs test method broken in 8.20.0 #35696

aaronhuisinga opened this issue Dec 22, 2020 · 3 comments

Comments

@aaronhuisinga
Copy link

  • Laravel Version: 8.20.0
  • PHP Version: 7.4.13
  • Database Driver & Version: MySQL

Description:

#35692 introduced a breaking change. The Passport::actingAs() method is no longer working in 8.20.0. Reverting that commit fixes the issue for us.

Steps To Reproduce:

  1. Install Laravel 8.20.0
  2. Install Passport 4.x
  3. Write test using Passport::actingAs($user);
  4. Test will fail with a 401 Unauthenticated error.
@lo00l
Copy link

lo00l commented Dec 22, 2020

Also it breaks actingAs() method in Illuminate\Foundation\Testing\Concerns\InteractsWithAuthentication trait.
Also test fails with 401 error.

@psprokofiev
Copy link

+1
Looks like cause of it
0d601f5

@driesvints
Copy link
Member

We reverted this. Thanks

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

4 participants