Fix oauth2 s256 (#36462)

This commit is contained in:
Lunny Xiao
2026-01-27 21:42:07 -08:00
committed by GitHub
parent 224b7881d9
commit bf8d11bb21
2 changed files with 40 additions and 2 deletions
+1 -2
View File
@@ -230,8 +230,7 @@ func AuthorizeOAuth(ctx *context.Context) {
// pkce support
switch form.CodeChallengeMethod {
case "S256":
case "plain":
case "S256", "plain":
if err := ctx.Session.Set("CodeChallengeMethod", form.CodeChallengeMethod); err != nil {
handleAuthorizeError(ctx, AuthorizeError{
ErrorCode: ErrorCodeServerError,