1
0
mirror of https://github.com/bitwarden/server synced 2025-12-20 02:03:46 +00:00
Files
server/src/Api/IdentityServer/ApiResources.cs
2017-04-05 15:31:33 -04:00

32 lines
838 B
C#

using IdentityServer4.Models;
using System.Collections.Generic;
using System.Security.Claims;
namespace Bit.Api.IdentityServer
{
public class ApiResources
{
public static IEnumerable<ApiResource> GetApiResources()
{
return new List<ApiResource>
{
new ApiResource("api", new string[] {
ClaimTypes.AuthenticationMethod,
ClaimTypes.NameIdentifier,
ClaimTypes.Email,
"securitystamp",
"name",
"email",
"sstamp", // security stamp
"plan",
"device",
"orgowner",
"orgadmin",
"orguser"
})
};
}
}
}