Hi @Tsypanov, Sergey (DXC Luxoft) , it looks like your links didn't save properly in case you wanted to repost them.
You can configure a custom claims provider for a token issuance event. This involves registering a custom authentication extension and adding attributes that you expect it to parse from your REST API.
To allow tokens to be augmented, you must explicitly enable the application registration to accept mapped claims. In your application registration, under Manage, select Manifest. In the manifest, locate the acceptMappedClaims
attribute, and set the value to true
. Also, set the accessTokenAcceptedVersion
to 2
You can use an Azure Function to handle the mapping of custom claims. The Azure Function will parse the client_assertion
and extract the custom claim xyz
, then include it in the access token.
Please let me know if you have any questions and I can help you further.
If this answer helps you please mark "Accept Answer" so other users can reference it.
Thank you,
James