Guest User

Untitled

a guest
Mar 23rd, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. public static IEnumerable<Scope> GetScopes()
  2. {
  3. return new List<Scope>
  4. {
  5. StandardScopes.OpenId,
  6. StandardScopes.Profile
  7. };
  8. }
  9.  
  10. public static IEnumerable<IdentityResource> GetIdentityResources()
  11. {
  12. return new List<IdentityResource>
  13. {
  14. new IdentityResources.OpenId(),
  15. new IdentityResources.Profile()
  16. };
  17. }
  18.  
  19. var customerProfile = new IdentityResource(
  20. name: "profile.customer",
  21. displayName: "Customer profile",
  22. claimTypes: new[] { "name", "status", "location" });
  23.  
  24. public static IEnumerable<Scope> GetScopes()
  25. {
  26. return new List<Scope>
  27. {
  28. new Scope
  29. {
  30. Name = "api1",
  31. DisplayName = "My API #1",
  32.  
  33. Type = ScopeType.Resource
  34. }
  35. };
  36. }
  37.  
  38. public static IEnumerable<ApiResource> GetApis()
  39. {
  40. return new[]
  41. {
  42. new ApiResource("api1", "My API #1")
  43. };
  44. }
Add Comment
Please, Sign In to add comment