I'm trying to validate token from the request header in API level. The token can be from Azure B2C or Azure AD depends on the way that the API get called. Are there any ways to distinguish the two from token itself or request? or I need the caller to send something to indicate which token is which l?
I use similar method as following to validate the token, I tested it with B2C and it works fine
Validating the token recieved from azure ad b2c using the Values from "jwks_uri" endpoint
Iām assuming I can validate Azure AD token in the same manner but with different parameters. But not sure how to distinguish the two tokens, so I can pass in correct parameters.