mirror of
https://github.com/bitwarden/server.git
synced 2025-04-25 23:02:17 -05:00
29 lines
760 B
C#
29 lines
760 B
C#
using IdentityModel;
|
|
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[] {
|
|
JwtClaimTypes.Name,
|
|
JwtClaimTypes.Email,
|
|
JwtClaimTypes.EmailVerified,
|
|
"sstamp", // security stamp
|
|
"premium",
|
|
"device",
|
|
"orgowner",
|
|
"orgadmin",
|
|
"orguser"
|
|
})
|
|
};
|
|
}
|
|
}
|
|
}
|