1
0
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:
Kyle Spearrin
2017-05-05 16:11:50 -04:00
parent 7f3bc450fd
commit 49bee6935a
11 changed files with 13 additions and 9 deletions

View 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"
})
};
}
}
}