2017-01-11 06:34:16 +01:00
|
|
|
|
using IdentityServer4.Models;
|
|
|
|
|
using System.Collections.Generic;
|
2017-01-12 03:46:36 +01:00
|
|
|
|
using System.Security.Claims;
|
2017-01-11 06:34:16 +01:00
|
|
|
|
|
2017-05-05 22:11:50 +02:00
|
|
|
|
namespace Bit.Core.IdentityServer
|
2017-01-11 06:34:16 +01:00
|
|
|
|
{
|
2017-01-12 03:46:36 +01:00
|
|
|
|
public class ApiResources
|
2017-01-11 06:34:16 +01:00
|
|
|
|
{
|
|
|
|
|
public static IEnumerable<ApiResource> GetApiResources()
|
|
|
|
|
{
|
|
|
|
|
return new List<ApiResource>
|
|
|
|
|
{
|
2017-03-10 02:30:19 +01:00
|
|
|
|
new ApiResource("api", new string[] {
|
2017-01-12 03:46:36 +01:00
|
|
|
|
ClaimTypes.AuthenticationMethod,
|
|
|
|
|
ClaimTypes.NameIdentifier,
|
|
|
|
|
ClaimTypes.Email,
|
2017-01-24 06:54:09 +01:00
|
|
|
|
"securitystamp",
|
|
|
|
|
|
2017-01-25 04:15:21 +01:00
|
|
|
|
"name",
|
|
|
|
|
"email",
|
|
|
|
|
"sstamp", // security stamp
|
|
|
|
|
"plan",
|
2017-04-05 21:31:33 +02:00
|
|
|
|
"device",
|
|
|
|
|
"orgowner",
|
|
|
|
|
"orgadmin",
|
|
|
|
|
"orguser"
|
2017-01-12 00:48:16 +01:00
|
|
|
|
})
|
2017-01-11 06:34:16 +01:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|