Files
server/src/Core/IdentityServer/ApiResources.cs

31 lines
990 B
C#
Raw Normal View History

using IdentityModel;
using IdentityServer4.Models;
using System.Collections.Generic;
2017-05-05 16:11:50 -04:00
namespace Bit.Core.IdentityServer
{
public class ApiResources
{
public static IEnumerable<ApiResource> GetApiResources()
{
return new List<ApiResource>
{
2017-03-09 20:30:19 -05:00
new ApiResource("api", new string[] {
JwtClaimTypes.Name,
JwtClaimTypes.Email,
JwtClaimTypes.EmailVerified,
"sstamp", // security stamp
2017-07-01 23:20:30 -04:00
"premium",
2017-04-05 15:31:33 -04:00
"device",
"orgowner",
"orgadmin",
"orguser"
}),
2018-08-16 12:22:20 -04:00
new ApiResource("internal", new string[] { JwtClaimTypes.Subject }),
new ApiResource("api.push", new string[] { JwtClaimTypes.Subject }),
new ApiResource("api.licensing", new string[] { JwtClaimTypes.Subject })
};
}
}
}