mirror of
https://github.com/bitwarden/server.git
synced 2025-04-28 00:02:26 -05:00

* Upgrade to Duende.Identity * Linting * Get rid of last IdentityServer4 package * Fix identity test since Duende returns additional configuration * Use Configure PostConfigure is ran after ASP.NET's PostConfigure so ConfigurationManager was already configured and our HttpHandler wasn't being respected. * Regenerate lockfiles * Move to 6.0.4 for patches * fixes with testing * Add additional grant type supported in 6.0.4 and beautify * Lockfile refresh * Reapply lockfiles * Apply change to new WebAuthn logic * When automated merging fails me --------- Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com> Co-authored-by: Kyle Spearrin <kyle.spearrin@gmail.com>
29 lines
954 B
C#
29 lines
954 B
C#
using Duende.IdentityServer.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"),
|
|
};
|
|
}
|
|
}
|