<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D5KZ00001PPHNH0A5Okta Classic EngineSingle Sign-OnAnswered2025-11-05T15:50:10.000Z2025-10-07T17:00:01.000Z2025-11-05T15:50:10.000Z

AaronG.41962 (Customer) asked a question.

Proxying login_hint parameter in a federated SAML2 SP-initiated flow

We have a federated Okta SAML2 SSO setup with multiple customer IdPs and a hub Okta instance which handles all authentication for our App. So it looks like this:

 

IdP1, IdP2, … <—> Okta <—> App

 

In our Service Provider initiated flow, an unauthenticated user navigates directly to App and is asked for their email address in order for App to determine if they authenticate with the above SSO flow or a standard username/password flow. If the user is indeed an SSO user, we are trying to avoid having the user enter their email address a second time.

 

Best we have it at the moment is we kick off the SP-initiated flow by sending a SAML2 AuthNRequest from App to Okta with the user's email address in the `login_hint` query parameter. Okta looks up the appropriate IdP for this user based on the domain of their email address in its configured identity provider routing rules. Okta then sends a new SAML2 AuthNRequest to the IdP where the user finally logs in, but does NOT re-include the `login_hint` parameter in the request.

 

The net result of this is that, even for IdP's which support the `login_hint` parameter (Okta, EntraId,...), the user must re-enter their email address at the IdP.

 

Is there a way to get Okta to proxy the `login_hint` parameter in its AuthNRequest to the IdP? Or is there another way to approach this problem?


  • Paul S. (Okta, Inc.)

    Hello @AaronG.41962 (Customer)​ Thank you for posting on our Community page!

     

    Unfortunately, at this time there is no direct administrative setting in the Okta Admin Console to instruct the Okta Hub to automatically re-include the login_hint as a query parameter on the SAML request to a federated IdP.

    However you can add an Idea on our Idea section for a possibility to add this functionality in the future.

    https://ideas.okta.com/

     

    Thank you for reaching out to our Community and have a great day!

    --

    Help others in the community by liking or hitting Select as Best if this response helped you.

    Expand Post
    Selected as Best
  • Paul S. (Okta, Inc.)

    Hello @AaronG.41962 (Customer)​ Thank you for posting on our Community page!

     

    Unfortunately, at this time there is no direct administrative setting in the Okta Admin Console to instruct the Okta Hub to automatically re-include the login_hint as a query parameter on the SAML request to a federated IdP.

    However you can add an Idea on our Idea section for a possibility to add this functionality in the future.

    https://ideas.okta.com/

     

    Thank you for reaching out to our Community and have a great day!

    --

    Help others in the community by liking or hitting Select as Best if this response helped you.

    Expand Post
    Selected as Best
  • BrandonB.06003 (Customer)

    this feature is available on OIDC apps but not SAML as far as im aware. It is inconvenient for sure but not too horrible. another option you could consider is directly linking a user to their appropriate IDP from your app. that would require custom code but its an option. basically something like https://yourokta.okta.com/sso/idps/{IDPID} this automatically triggers the SSO to their IDP without having to type into okta. im not 100% sure if you can add a relayState at the end of that. that would be the primary issue with that approach

    Expand Post
This question is closed.
Loading
Proxying login_hint parameter in a federated SAML2 SP-initiated flow