@ligonsker You wouldn’t. You use the SAML endpoint to identify a user, and then use those details to authenticate the user in your app (creating a session for them).
You then need to handle two potential actions:
- If the user logs out of your application, you need to tell the identity provider they’ve logged out so the session is ended.
- If the user ends their SSO session via some other means, your application should have an endpoint to be notified, so that you can clear their authenticated session in your application as well.
These are described in the README of the very project you posted: https://github.com/24Slides/laravel-saml2?tab=readme-ov-file#logging-out