Make methods static in AuthenticationContext

pull/6201/head
Patrick Barron 4 years ago
parent b6446c06ee
commit 37a8a82ac5

@ -199,7 +199,7 @@ namespace Jellyfin.Server.Implementations.Security
/// </summary> /// </summary>
/// <param name="httpReq">The HTTP req.</param> /// <param name="httpReq">The HTTP req.</param>
/// <returns>Dictionary{System.StringSystem.String}.</returns> /// <returns>Dictionary{System.StringSystem.String}.</returns>
private Dictionary<string, string>? GetAuthorizationDictionary(HttpContext httpReq) private static Dictionary<string, string>? GetAuthorizationDictionary(HttpContext httpReq)
{ {
var auth = httpReq.Request.Headers["X-Emby-Authorization"]; var auth = httpReq.Request.Headers["X-Emby-Authorization"];
@ -216,7 +216,7 @@ namespace Jellyfin.Server.Implementations.Security
/// </summary> /// </summary>
/// <param name="httpReq">The HTTP req.</param> /// <param name="httpReq">The HTTP req.</param>
/// <returns>Dictionary{System.StringSystem.String}.</returns> /// <returns>Dictionary{System.StringSystem.String}.</returns>
private Dictionary<string, string>? GetAuthorizationDictionary(HttpRequest httpReq) private static Dictionary<string, string>? GetAuthorizationDictionary(HttpRequest httpReq)
{ {
var auth = httpReq.Headers["X-Emby-Authorization"]; var auth = httpReq.Headers["X-Emby-Authorization"];
@ -233,7 +233,7 @@ namespace Jellyfin.Server.Implementations.Security
/// </summary> /// </summary>
/// <param name="authorizationHeader">The authorization header.</param> /// <param name="authorizationHeader">The authorization header.</param>
/// <returns>Dictionary{System.StringSystem.String}.</returns> /// <returns>Dictionary{System.StringSystem.String}.</returns>
private Dictionary<string, string>? GetAuthorization(ReadOnlySpan<char> authorizationHeader) private static Dictionary<string, string>? GetAuthorization(ReadOnlySpan<char> authorizationHeader)
{ {
var firstSpace = authorizationHeader.IndexOf(' '); var firstSpace = authorizationHeader.IndexOf(' ');

Loading…
Cancel
Save