Skip to content

Commit

Permalink
Case insensitive parse for OAuthConnections
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberboss committed Oct 6, 2024
1 parent dab44e6 commit 674276e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tgstation.Server.Api/ApiHeaders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ void AddError(HeaderErrorTypes headerType, string message)
if (requestHeaders.Headers.TryGetValue(OAuthProviderHeader, out StringValues oauthProviderValues))
{
var oauthProviderString = oauthProviderValues.First();
if (Enum.TryParse<OAuthProvider>(oauthProviderString, out var oauthProvider))
if (Enum.TryParse<OAuthProvider>(oauthProviderString, true, out var oauthProvider))
OAuthProvider = oauthProvider;
else
AddError(HeaderErrorTypes.OAuthProvider, "Invalid OAuth provider!");
Expand Down

0 comments on commit 674276e

Please sign in to comment.