Skip to content

Instantly share code, notes, and snippets.

@mfcollins3
Last active January 21, 2022 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfcollins3/f4a2bd0dd62e5a672ff3b845ea5fdaea to your computer and use it in GitHub Desktop.
Save mfcollins3/f4a2bd0dd62e5a672ff3b845ea5fdaea to your computer and use it in GitHub Desktop.
Log in relying party policy for B2C
<RelyingParty>
<DefaultUserJourney ReferenceId="LogIn" />
<UserJourneyBehaviors>
<JourneyInsights
TelemetryEngine="ApplicationInsights"
InstrumentationKey="7c25e293-8d7e-46c8-9e84-39400c53f1fb"
DeveloperMode="true"
ClientEnabled="true"
ServerEnabled="true"
TelemetryVersion="1.0.0" />
</UserJourneyBehaviors>
<TechnicalProfile Id="PolicyProfile">
<DisplayName>Log In</DisplayName>
<Description>Allows users to log into a client application using their password</Description>
<Protocol Name="OpenIdConnect" />
<InputClaims>
<InputClaim ClaimTypeReferenceId="signInName" />
</InputClaims>
<OutputClaims>
<OutputClaim ClaimTypeReferenceId="objectId" PartnerClaimType="sub" />
<OutputClaim ClaimTypeReferenceId="tenantId" AlwaysUseDefaultValue="true" DefaultValue="{Policy:TenantObjectId}" />
</OutputClaims>
<SubjectNamingInfo ClaimType="sub" />
</TechnicalProfile>
</RelyingParty>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment