I'm currently working with Azure Active Directory access tokens and .NET Core 3.1. The access tokens I request produce the following claim:
{
...
"scp": "MyScope.Create MyScope.Search"
...
}
However, after running the verification of the access token, the name of the claim "scp" changes to "http://schemas.microsoft.com/identity/claims/scope"
SecurityToken securityToken;
ClaimsPrincipal claimsPrincipal = tokenValidator.ValidateToken(accessToken, myValidationParameters, out securityToken);
return claimsPrincipal;
Also, as you can see in the image, not all claims are changed, some stay as they were created like aud or iss, but scp changes to "http://schemas.microsoft..." (like if this was a v1 token, but it is v2)
Is this something expected, or is there something I should be configuring so the claims stay as the should be.
Thanks!
