🐛 Remove PKCE on Google OIDC

This commit is contained in:
2025-06-17 23:08:58 +08:00
parent ada84f85e9
commit 5c02c63f70
2 changed files with 9 additions and 63 deletions

View File

@ -278,7 +278,7 @@ public class ConnectionController(
}
// Clean up and redirect
var returnUrlKey = $"{ReturnUrlCachePrefix}{CleanStateCodeVerifier(callbackData.State)}";
var returnUrlKey = $"{ReturnUrlCachePrefix}{callbackData.State}";
var returnUrl = await cache.GetAsync<string>(returnUrlKey);
await cache.RemoveAsync(returnUrlKey);
@ -367,9 +367,4 @@ public class ConnectionController(
return data;
}
private static string? CleanStateCodeVerifier(string? og)
{
return og is null ? null : !og.Contains('|') ? og : og.Split('|').First();
}
}