aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Auth/BaseAuthorizationHandler.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Jellyfin.Api/Auth/BaseAuthorizationHandler.cs')
-rw-r--r--Jellyfin.Api/Auth/BaseAuthorizationHandler.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/Jellyfin.Api/Auth/BaseAuthorizationHandler.cs b/Jellyfin.Api/Auth/BaseAuthorizationHandler.cs
index 7d68aecf9..456f45d97 100644
--- a/Jellyfin.Api/Auth/BaseAuthorizationHandler.cs
+++ b/Jellyfin.Api/Auth/BaseAuthorizationHandler.cs
@@ -1,4 +1,4 @@
-using System.Security.Claims;
+using System.Security.Claims;
using Jellyfin.Api.Helpers;
using Jellyfin.Data.Enums;
using MediaBrowser.Common.Extensions;
@@ -37,6 +37,16 @@ namespace Jellyfin.Api.Auth
}
/// <summary>
+ /// Gets a value indicating <see cref="INetworkManager"/> being used.
+ /// </summary>
+ protected INetworkManager NetworkManager => _networkManager;
+
+ /// <summary>
+ /// Gets a value indicating the <see cref="HttpContextAccessor"/> being used.
+ /// </summary>
+ protected IHttpContextAccessor HttpContextAccessor => _httpContextAccessor;
+
+ /// <summary>
/// Validate authenticated claims.
/// </summary>
/// <param name="claimsPrincipal">Request claims.</param>