laravel-saml2 icon indicating copy to clipboard operation
laravel-saml2 copied to clipboard

Can not get current logged in user session to make logout & login the new user.

Open mrunalpittalia opened this issue 1 year ago • 1 comments

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.

mrunalpittalia avatar Oct 15 '22 07:10 mrunalpittalia