24Slides / laravel-saml2

[Laravel 5.4+] An integration to add SSO to your service via SAML2 protocol based on OneLogin toolkit with support of multiple Identity Providers
MIT License
232 stars 69 forks source link

How do I suggest a username to IDp? #78

Open dev-databee opened 11 months ago

dev-databee commented 11 months ago

My application uses different IDp for different segment of users. We identify the user based on their saml userid.

Is there a way, as a service provider, to suggest a username to laravel-saml2 package that it will pass to IDP for login?

For example, when it is time for login the my app would ask the user for the username they wish to login as. Based on the username we will identify the Saml2 Tenant to be used and then forward the user to the IDP using the saml2 link provided by the package. Is there a way to do this?