Is there a way to add custom claims to a JWT (access token) other than adding the optional claims?
Our situation is that we receive requests from external clients with access tokens signed by a trusted party. We need to validate the token and then add some additional claims before routing the request to the protected API. The values of the additional claims needs to be fetched from an external API, so there is no way to use the provided "optional claims" in the Token configuration settings.
Does anyone know if this is possible with Azure AD? We have been able to do this using IdentityServer which of course is very flexible. But it would be great to simplify our architecture/design by only having Azure AD as our IDP/STS.