Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

login_hint? #208

Closed
HendrikPetertje opened this issue Mar 3, 2022 · 2 comments
Closed

login_hint? #208

HendrikPetertje opened this issue Mar 3, 2022 · 2 comments

Comments

@HendrikPetertje
Copy link

Hey Omniauth SAML team!

I've been using your fantastic adapter for a while now, but have recently started to get questions from my customers about the ability to pre-fill their email address in the Microsoft Azure login page.

Apparently its possible to include a param &login_hint=username@example.com in SAML solutions like Microsoft Azure & Auth0 the header of the SAML request to automatically pre-fill the email address (or skip over filling in email address & password entirely if the user is already signed in, moving straight into multi-factor)

I am wondering how i should proceed to parse the email address coming from the login form of my website straight into a login_hint param for Auth0 and Azure AD, is there a way of doing this in omniauth_saml natively?

@HendrikPetertje
Copy link
Author

I believe I found the right option!

in the provider settings:

 h[:idp_sso_service_url_runtime_params] = { username: :login_hint }

And then just post to the SSO login url with a "username" param!

@jstuckey
Copy link

Thank you for figuring this out and sharing the solution! I just made the same change for our application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants