mirror of
https://github.com/bitwarden/server.git
synced 2025-03-02 04:11:04 +01:00
32 lines
839 B
C#
32 lines
839 B
C#
using IdentityServer4.Models;
|
|
using System.Collections.Generic;
|
|
using System.Security.Claims;
|
|
|
|
namespace Bit.Core.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"
|
|
})
|
|
};
|
|
}
|
|
}
|
|
}
|