azure-docs icon indicating copy to clipboard operation
azure-docs copied to clipboard

Add extension attribute as claim to access token

Open b509 opened this issue 2 years ago • 1 comments

Possibly related to #55990

According to the documentation I should be able to add extension attributes to my tokens, but if I add one to the manifest as indicated in the documentation I get the warning "This claim is not supported and will not be returned in the token". Config looks like this "optionalClaims": { "accessToken": [ { "name": "extension_<appid>_<myattribute>", "source": "user", "essential": false } ] }

The extension attribute in question was added via a claimsMappingPolicies and with the setting "acceptMappedClaims": true in the manifest it shows up fine in the ID token. But adding it to the accessToken seems to be impossible.

I don't know if this is relevant, but the of the extension attribute is not the same appid as the app I'm currently editing


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

b509 avatar Jun 01 '23 13:06 b509

@b509 Thanks for your feedback! We will investigate and update as appropriate.

Naveenommi-MSFT avatar Jun 01 '23 18:06 Naveenommi-MSFT

An ADO workitem has been opened to track any documentation work needed and will be evaluated and prioritized.

https://dev.azure.com/msft-skilling/Content/_workitems/edit/169187

#please-close

davidmu1 avatar Oct 11 '23 16:10 davidmu1