public virtual async Task CreateStandardClaimTypesAsync() { var resources = IdentityResource.GetStandardResources(); foreach (var resource in resources) { foreach (var claimType in resource.UserClaims) { await AddClaimTypeIfNotExistsAsync(claimType); } } }