aacotroneo / laravel-saml2

A Laravel 5 package for Saml2 integration as a SP (service provider) based on the simple OneLogin toolkit
MIT License
567 stars 238 forks source link

Get user if it´s logged in yet? #184

Closed Albvadi closed 5 years ago

Albvadi commented 5 years ago

Hi, It´s possible to get user info if the user it´s authenticated yet with the IdP outside the app?

Steps: 1.- User login in the IdP in one browser tab. 2.- After succesfull login, the user enter in a protected route in the app.

Current behavior: The app redirect to IdP login again.

Expected behavior: The user is logged yet, so, enter in the protected route.

Thanks!

Albvadi commented 5 years ago

All is working as expected.... Sorry!

adydev15 commented 2 years ago

Hi @Albvadi

i am having same issue can you please guide me how can i achieve that .

In my case i want to check if user has already logged in IDP then i need to redirect user to homepage.