map the roles in the JWToken

This commit is contained in:
Paul Schneider 2025-02-09 12:04:14 +00:00
commit 43b289886e
4 changed files with 88 additions and 12 deletions

View file

@ -39,6 +39,7 @@ public static class Config
{
new IdentityResources.OpenId(),
new IdentityResources.Profile(),
new IdentityResources.Email()
};
public static IEnumerable<ApiScope> ApiScopes =>
@ -79,7 +80,7 @@ public static class Config
AllowedScopes = {
IdentityServerConstants.StandardScopes.OpenId,
IdentityServerConstants.StandardScopes.Profile,
"scope2" }
IdentityServerConstants.StandardScopes.Email }
},
};