diff options
| author | Claus Vium <clausvium@gmail.com> | 2019-11-24 19:25:46 +0100 |
|---|---|---|
| committer | Claus Vium <clausvium@gmail.com> | 2019-11-24 19:25:46 +0100 |
| commit | 47a4f2f387825d9c249c53b3796a43e3eac52b58 (patch) | |
| tree | 7c6dd55ccb23b400f5ebb70e320f51f9625157ca /Jellyfin.Api/Constants | |
| parent | 2af5922af06c865d676e817112ef76a92a23e1b6 (diff) | |
Fix more review comments
Diffstat (limited to 'Jellyfin.Api/Constants')
| -rw-r--r-- | Jellyfin.Api/Constants/AuthenticationSchemes.cs | 13 | ||||
| -rw-r--r-- | Jellyfin.Api/Constants/Policies.cs | 18 | ||||
| -rw-r--r-- | Jellyfin.Api/Constants/UserRoles.cs (renamed from Jellyfin.Api/Constants/UserRole.cs) | 2 |
3 files changed, 32 insertions, 1 deletions
diff --git a/Jellyfin.Api/Constants/AuthenticationSchemes.cs b/Jellyfin.Api/Constants/AuthenticationSchemes.cs new file mode 100644 index 000000000..bac3379e7 --- /dev/null +++ b/Jellyfin.Api/Constants/AuthenticationSchemes.cs @@ -0,0 +1,13 @@ +namespace Jellyfin.Api.Constants +{ + /// <summary> + /// Authentication schemes for user authentication in the API. + /// </summary> + public static class AuthenticationSchemes + { + /// <summary> + /// Scheme name for the custom legacy authentication. + /// </summary> + public const string CustomAuthentication = "CustomAuthentication"; + } +} diff --git a/Jellyfin.Api/Constants/Policies.cs b/Jellyfin.Api/Constants/Policies.cs new file mode 100644 index 000000000..e2b383f75 --- /dev/null +++ b/Jellyfin.Api/Constants/Policies.cs @@ -0,0 +1,18 @@ +namespace Jellyfin.Api.Constants +{ + /// <summary> + /// Policies for the API authorization. + /// </summary> + public static class Policies + { + /// <summary> + /// Policy name for requiring first time setup or elevated privileges. + /// </summary> + public const string FirstTimeSetupOrElevated = "FirstTimeOrElevated"; + + /// <summary> + /// Policy name for requiring elevated privileges. + /// </summary> + public const string RequiresElevation = "RequiresElevation"; + } +} diff --git a/Jellyfin.Api/Constants/UserRole.cs b/Jellyfin.Api/Constants/UserRoles.cs index b1da61557..d9a536e7d 100644 --- a/Jellyfin.Api/Constants/UserRole.cs +++ b/Jellyfin.Api/Constants/UserRoles.cs @@ -3,7 +3,7 @@ namespace Jellyfin.Api.Constants /// <summary> /// Constants for user roles used in the authentication and authorization for the API. /// </summary> - public static class UserRole + public static class UserRoles { /// <summary> /// Guest user. |
