Does anyone know what's the purpose of the optionalClaims
field within the manifest file of a registered app on Azure?
To give some background, I'm trying to explore some options to add "custom-claims-like" claims to OAuth2 tokens generated by Azure AD. I know from this SO post and this SO post, that Azure currently doesn't offer it. From this Microsoft doc, it states that the optionalClaims
field is
The optional claims returned in the token by the security token service for this specific app.
What's the security token service and how can I set it up? Is this for implicit flows only? Can I put a nonce value in this access token (and not the ID token since I don't want to use OpenID connect)?
Please let me know, thanks.