diff --git a/routers/web/auth/oauth.go b/routers/web/auth/oauth.go index 1fd4a0311b..8e8ede0008 100644 --- a/routers/web/auth/oauth.go +++ b/routers/web/auth/oauth.go @@ -480,8 +480,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,