mirror of
https://github.com/bitwarden/server.git
synced 2025-07-04 01:22:50 -05:00
move identityserver libs into core
This commit is contained in:
31
src/Core/IdentityServer/ApiResources.cs
Normal file
31
src/Core/IdentityServer/ApiResources.cs
Normal file
@ -0,0 +1,31 @@
|
||||
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"
|
||||
})
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user