I have a custom policy which I'm using to login with B2C. In the code I need the firtname, lastname, email of the user. How can I get these information from the custom policy?
I have tried to add in the TrusetdFrameworkExtension
in the OutputClaim
node:
<OutputClaims>
<OutputClaim ClaimTypeReferenceId="displayName" />
<OutputClaim ClaimTypeReferenceId="givenName" />
<OutputClaim ClaimTypeReferenceId="surname" />
<OutputClaim ClaimTypeReferenceId="email" />
<OutputClaim ClaimTypeReferenceId="objectId" PartnerClaimType="sub" />
<OutputClaim ClaimTypeReferenceId="identityProvider" />
</OutputClaims>
but without success. Any idea is appreciated. Thanks