36 lines
1.2 KiB
C#
36 lines
1.2 KiB
C#
using IdentityServer3.Core.Models;
|
|
using System.Collections.Generic;
|
|
|
|
namespace IdentityServer.Config
|
|
{
|
|
public class Scopes
|
|
{
|
|
public static IEnumerable<Scope> Get()
|
|
{
|
|
return new[]
|
|
{
|
|
StandardScopes.OpenId,
|
|
StandardScopes.Profile,
|
|
StandardScopes.Email,
|
|
//StandardScopes.RolesAlwaysInclude,
|
|
//StandardScopes.AllClaims,
|
|
|
|
new Scope
|
|
{
|
|
Name = "api1",
|
|
Claims = new List<ScopeClaim>
|
|
{
|
|
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)
|
|
}
|
|
},
|
|
};
|
|
}
|
|
}
|
|
} |