adds aspnet.identity

This commit is contained in:
Paul Schneider 2021-04-25 12:12:50 +01:00
commit dc37c9a9f0
26 changed files with 1106 additions and 122 deletions

View file

@ -17,6 +17,7 @@ namespace nuget_host
public static IEnumerable<ApiResource> ApiResources =>
new List<ApiResource>
{
new ApiResource(IdentityServerConstants.LocalApi.ScopeName),
new ApiResource(scope_packages)
};
@ -33,7 +34,8 @@ namespace nuget_host
AllowedGrantTypes = GrantTypes.ClientCredentials,
// scopes that client has access to
AllowedScopes = { scope_packages }
AllowedScopes = { scope_packages,
IdentityServerConstants.LocalApi.ScopeName }
},
// interactive ASP.NET Core MVC client
@ -54,6 +56,7 @@ namespace nuget_host
{
IdentityServerConstants.StandardScopes.OpenId,
IdentityServerConstants.StandardScopes.Profile,
IdentityServerConstants.LocalApi.ScopeName,
scope_packages
}
}