laravel-saml2
laravel-saml2 copied to clipboard
Can not get current logged in user session to make logout & login the new user.
Hello,
The are some cases which don't work here:
- If there is already logged user & it's email != saml->user->email, then make logged-in user logout first.
- If there is already logged user & it's email == saml->user->email, then app don't need new session & need to persist existing session.
Problem is:
- auth()->user() always returns null.
- auth()->login($user) creates new session always. I guess its due to the fact the auth()->user() return null.
Correct me if I am wrong on concept & reported problems.