Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static IEnumerable<Scope> GetScopes()
- {
- return new List<Scope>
- {
- StandardScopes.OpenId,
- StandardScopes.Profile
- };
- }
- public static IEnumerable<IdentityResource> GetIdentityResources()
- {
- return new List<IdentityResource>
- {
- new IdentityResources.OpenId(),
- new IdentityResources.Profile()
- };
- }
- var customerProfile = new IdentityResource(
- name: "profile.customer",
- displayName: "Customer profile",
- claimTypes: new[] { "name", "status", "location" });
- public static IEnumerable<Scope> GetScopes()
- {
- return new List<Scope>
- {
- new Scope
- {
- Name = "api1",
- DisplayName = "My API #1",
- Type = ScopeType.Resource
- }
- };
- }
- public static IEnumerable<ApiResource> GetApis()
- {
- return new[]
- {
- new ApiResource("api1", "My API #1")
- };
- }
Add Comment
Please, Sign In to add comment