using IdentityServer3.Core.Models; using System.Collections.Generic; namespace IdentityServer.Config { public class Scopes { public static IEnumerable Get() { return new[] { StandardScopes.OpenId, StandardScopes.Profile, StandardScopes.Email, //StandardScopes.RolesAlwaysInclude, //StandardScopes.AllClaims, new Scope { Name = "api1", Claims = new List { new ScopeClaim("username", true), new ScopeClaim("role", true), new ScopeClaim("userId", true), new ScopeClaim("pmcGuid", true), new ScopeClaim("condoGuid", true), new ScopeClaim("relativePath", true), new ScopeClaim("isAdmin", true), new ScopeClaim("isPropertyManager", true) } }, }; } } }