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

refactor: delay authenticate method invocation to support Auth::setUser() #125

Closed
wants to merge 3 commits into from

Conversation

overtrue
Copy link

Thanks for the great package!

I made a small improvement to support Auth::setUser(). My scenario is:

When I was doing local development, I hoped to use a middleware to preset a fixed logged-in user through Auth::setUser($mockUser), but I found that KeycloakGuard::authenticate() was already called in __construct, so it couldn't be accomplished.

Thanks.

@overtrue overtrue changed the title refactor: refactor: delay authenticate method invocation to support A… refactor: delay authenticate method invocation to support Auth::setUser() Dec 31, 2024
@overtrue overtrue closed this Jan 7, 2025
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

Successfully merging this pull request may close these issues.

1 participant