1
0
mirror of https://github.com/bitwarden/server.git synced 2025-03-02 04:11:04 +01:00
bitwarden-server/src/Core/IdentityServer/ApiResources.cs

32 lines
839 B
C#
Raw Normal View History

using IdentityServer4.Models;
using System.Collections.Generic;
using System.Security.Claims;
2017-05-05 22:11:50 +02:00
namespace Bit.Core.IdentityServer
{
public class ApiResources
{
public static IEnumerable<ApiResource> GetApiResources()
{
return new List<ApiResource>
{
2017-03-10 02:30:19 +01:00
new ApiResource("api", new string[] {
ClaimTypes.AuthenticationMethod,
ClaimTypes.NameIdentifier,
ClaimTypes.Email,
2017-01-24 06:54:09 +01:00
"securitystamp",
"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
})
};
}
}
}