From 47c720d8f5a72934f519fb9dec66571cdd1b0100 Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Sun, 9 Mar 2025 22:16:35 -0400 Subject: [PATCH] Undo unnecessary `ApiHeaders` changes --- src/Tgstation.Server.Api/ApiHeaders.cs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/Tgstation.Server.Api/ApiHeaders.cs b/src/Tgstation.Server.Api/ApiHeaders.cs index 051d3022c1..9e0b9d7772 100644 --- a/src/Tgstation.Server.Api/ApiHeaders.cs +++ b/src/Tgstation.Server.Api/ApiHeaders.cs @@ -53,11 +53,6 @@ namespace Tgstation.Server.Api /// public const string OAuthAuthenticationScheme = "OAuth"; - /// - /// The OIDC authentication header scheme. - /// - public const string OpenIDConnectAuthenticationSchemePrefix = "OpenIdConnect."; - /// /// Added to in netstandard2.1. Can't use because of lack of .NET Framework support. /// @@ -108,11 +103,6 @@ namespace Tgstation.Server.Api /// public TokenResponse? Token { get; } - /// - /// The parsed if any. - /// - public AuthenticationHeaderValue? AuthenticationHeader { get; } - /// /// The client's username. /// @@ -262,7 +252,6 @@ namespace Tgstation.Server.Api { splits.RemoveAt(0); var parameter = String.Concat(splits); - AuthenticationHeader = new AuthenticationHeaderValue(scheme, parameter); if (String.IsNullOrEmpty(parameter)) AddError(HeaderErrorTypes.AuthorizationInvalid, "Missing authentication parameter!"); else @@ -331,8 +320,6 @@ namespace Tgstation.Server.Api Password = String.Concat(basicAuthSplits.Skip(1)); break; default: - if (!scheme.StartsWith(OpenIDConnectAuthenticationSchemePrefix)) - AddError(HeaderErrorTypes.AuthorizationInvalid, "Invalid authentication scheme!"); break; } }