🐛 Remove PKCE on Google OIDC
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user