-
Notifications
You must be signed in to change notification settings - Fork 72
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
Question: Where to add listeners for events? #65
Comments
Run this command: This will create a new Listener class under the app\Listeners dir. |
Auth::login here doesn't work! |
@mohamed-salah-tawfik The same thing happened to me. I could login the user in the listener but once they were redirected to the app, they were not logged in. Check you have routesMiddleware set in your config/saml2.php file. Mine is set to 'web'. You need to make sure the middleware group is using StartSession in Kernel.php (the 'web' middleware group will do this by default). |
Thank you so much. This really helped a lot. |
I clear up some things for users running laravel 11 or higher:
$middleware->validateCsrfTokens(except: ['saml2/*']); |
Hi,
the readme says under "Authentication events", that you should "add listeners on Slides\Saml2\SignedIn and Slides\Saml2\SignedOut events.", but it does not tell where (in which file) one should do that - is there any example showing exactly what to do?
kind regards,
Christoph
The text was updated successfully, but these errors were encountered: