diff options
| author | BaronGreenback <jimcartlidge@yahoo.co.uk> | 2021-04-10 12:03:52 +0100 |
|---|---|---|
| committer | BaronGreenback <jimcartlidge@yahoo.co.uk> | 2021-04-10 12:03:52 +0100 |
| commit | 5fb7557763566ef4345aa563c4c1b6d81ce3ff57 (patch) | |
| tree | 7507b20629eae57d9743a47bda8a1eb96b35eb5e /Jellyfin.Api/Auth/BaseAuthorizationHandler.cs | |
| parent | 221d9373e857d008ac9c1426e856ae3da1200701 (diff) | |
Network Access Policy
Diffstat (limited to 'Jellyfin.Api/Auth/BaseAuthorizationHandler.cs')
| -rw-r--r-- | Jellyfin.Api/Auth/BaseAuthorizationHandler.cs | 12 |
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> |
