Beispiel #1
0
        public virtual async Task CreateStandardClaimTypesAsync()
        {
            var resources = IdentityResource.GetStandardResources();

            foreach (var resource in resources)
            {
                foreach (var claimType in resource.UserClaims)
                {
                    await AddClaimTypeIfNotExistsAsync(claimType);
                }
            }
        }