question

Sakshi-3751 avatar image
0 Votes"
Sakshi-3751 asked amanpreetsingh-msft answered

How to add tfp claim in token issued by custom B2C policy?

I want to configure my custom b2c policies to return TFP claim in the token with policy name as it's value, after the user is authenticated via federated SAML IDP.
Any help on this would be much appreciated.

azure-ad-b2c
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

amanpreetsingh-msft avatar image
2 Votes"
amanpreetsingh-msft answered

@Sakshi-3751 The token return by Custom policy in B2C by default includes acr claim containing policy name. If you want to remove this claim and use tfp claim instead, you need to set AuthenticationContextReferenceClaimPattern to None in JWTIssuer technical profile as highlighted below:
7463-untitled.png

This will remove the acr claim from the token and to add tfp claim, add below claim id under claim schema in your TrustFrameworkBase.xml or TrustFrameworkExtensions.xml file.
7571-capture.jpg

Finally, add below output claim in your RP file (e.g., signup_signin.xml) :
7484-capture2.jpg


Please "Accept as answer" wherever the information provided helps you to help others in the community.




untitled.png (15.0 KiB)
capture.jpg (24.0 KiB)
capture2.jpg (12.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.