How to pass login_hint when using Idp initiated sign in flow - Azure SAML B2C Custom policy?

Karikalan Ramakrishn 236 Reputation points
2021-08-13T13:18:43.597+00:00

I'm using B2C SAML authentication custom policy. Also this thru Idp initiated sign-in flow. i.e. https://.b2clogin.com/.onmicrosoft.com//generic/login?EntityId=app-identifier-uri -https://learn.microsoft.com/en-us/azure/active-directory-b2c/saml-service-provider-options?pivots=b2c-custom-policy

My requirement is that I want to pass "login_hint" thru the URL as explained in https://learn.microsoft.com/bs-latn-ba/azure/active-directory-b2c/direct-signin?pivots=b2c-user-flow

Not sure this is applicable to OIDC protocol only. Not for SAML? Even if its applicable to SAML, not sure for Idp initiated sign-in URL, how to pass the login_hint parameter value. Any example OR guidelines will be greatly appreciated. Thanks

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
0 comments No comments
{count} votes

Accepted answer
  1. AmanpreetSingh-MSFT 56,871 Reputation points Moderator
    2021-08-18T11:36:59.7+00:00

    Hi @Karikalan Ramakrishn • Thank you for reaching out.

    Spec-wise, login_hint is a subject field in SAML authN request. However, Azure AD B2C does not support parsing out user hint from subject claim in the request. So, as of now, B2C can use login_hint only when OIDC/OAuth is used.

    -----------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.