Skip to content

Commit d6cee7c

Browse files
authored
Fix oauth2 auth (#33961) (#33962)
Backport #33961 UI fix is not needed.
1 parent 987219a commit d6cee7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/auth/oauth2_provider.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ func AuthorizeOAuth(ctx *context.Context) {
248248
}, form.RedirectURI)
249249
return
250250
}
251-
if err := ctx.Session.Set("CodeChallengeMethod", form.CodeChallenge); err != nil {
251+
if err := ctx.Session.Set("CodeChallenge", form.CodeChallenge); err != nil {
252252
handleAuthorizeError(ctx, AuthorizeError{
253253
ErrorCode: ErrorCodeServerError,
254254
ErrorDescription: "cannot set code challenge",

0 commit comments

Comments
 (0)