mirror of
https://github.com/bitwarden/server.git
synced 2025-04-23 14:05:10 -05:00
29 lines
815 B
C#
29 lines
815 B
C#
using IdentityModel;
|
|
using IdentityServer4.Models;
|
|
using System.Collections.Generic;
|
|
|
|
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"
|
|
}),
|
|
new ApiResource("api.push", new string[] { JwtClaimTypes.Subject })
|
|
};
|
|
}
|
|
}
|
|
}
|