How can I return the PolicyId Claim after executing my Custom SignUpSignIn policy?

后端 未结 2 1579
生来不讨喜
生来不讨喜 2020-12-18 11:10

I would like the policyId to be included in the claims that are returned when my Customized SignUpSignIn policy is executed.

I think this should be in claim Id

相关标签:
2条回答
  • 2020-12-18 11:26

    The PolicyId is in the ACR claim when using the Starter Pack

    0 讨论(0)
  • 2020-12-18 11:35

    Add the following ClaimType to TrustFrameworkExtensions.xml:

    <ClaimType Id="trustFrameworkPolicy">
        <DisplayName>Trust Framework Policy</DisplayName>
        <DataType>string</DataType>
        <DefaultPartnerClaimTypes>
            <Protocol Name="OAuth2" PartnerClaimType="tfp" />
            <Protocol Name="OpenIdConnect" PartnerClaimType="tfp" />
        </DefaultPartnerClaimTypes>
    </ClaimType>
    

    Note: ClaimType should be a child node of <ClaimsSchema><BuildingBlocks>

    0 讨论(0)
提交回复
热议问题