mirror of
https://github.com/bitwarden/server.git
synced 2025-07-13 13:47:30 -05:00
[SM-394] Secrets Manager (#2164)
Long lived feature branch for Secrets Manager Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com> Co-authored-by: cd-bitwarden <106776772+cd-bitwarden@users.noreply.github.com> Co-authored-by: CarleyDiaz-Bitwarden <103955722+CarleyDiaz-Bitwarden@users.noreply.github.com> Co-authored-by: Thomas Avery <tavery@bitwarden.com> Co-authored-by: Colton Hurst <colton@coltonhurst.com>
This commit is contained in:
28
src/Core/IdentityServer/ApiScopes.cs
Normal file
28
src/Core/IdentityServer/ApiScopes.cs
Normal file
@ -0,0 +1,28 @@
|
||||
using IdentityServer4.Models;
|
||||
|
||||
namespace Bit.Core.IdentityServer;
|
||||
|
||||
public static class ApiScopes
|
||||
{
|
||||
public const string Api = "api";
|
||||
public const string ApiInstallation = "api.installation";
|
||||
public const string ApiLicensing = "api.licensing";
|
||||
public const string ApiOrganization = "api.organization";
|
||||
public const string ApiPush = "api.push";
|
||||
public const string ApiSecrets = "api.secrets";
|
||||
public const string Internal = "internal";
|
||||
|
||||
public static IEnumerable<ApiScope> GetApiScopes()
|
||||
{
|
||||
return new List<ApiScope>
|
||||
{
|
||||
new(Api, "API Access"),
|
||||
new(ApiPush, "API Push Access"),
|
||||
new(ApiLicensing, "API Licensing Access"),
|
||||
new(ApiOrganization, "API Organization Access"),
|
||||
new(ApiInstallation, "API Installation Access"),
|
||||
new(Internal, "Internal Access"),
|
||||
new(ApiSecrets, "Secrets Manager Access"),
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user