Read Prompt query string parameter in custom policy

Heather Turner 66 Reputation points
2021-04-26T19:40:33.873+00:00

I am following this article to read prompt parameter from the url when signing in via custom policy in Azure AD B2C
https://learn.microsoft.com/en-us/azure/active-directory-b2c/claim-resolver-overview#openid-connect

I can read scope just fine, but when trying to read prompt the exact same way as scope in the same technical profile as I am doing the read from scope, prompt comes out empty.

TechnicalProfile Id="OIDC">
<DisplayName>Employee</DisplayName>
<Description>Login with account</Description>
<Protocol Name="OpenIdConnect" />
<Metadata>
...........
<Item Key="IncludeClaimResolvingInClaimsHandling">true</Item>
</Metadata>
....
<OutputClaims>
.......
<OutputClaim ClaimTypeReferenceId="scope" AlwaysUseDefaultValue="true" DefaultValue="{OIDC:Scope}" />
<OutputClaim ClaimTypeReferenceId="prompt" AlwaysUseDefaultValue="true" DefaultValue="{OIDC:Prompt}" />
</OutputClaims>

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
3,141 questions
{count} votes

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.