Skip to content

Commit 7a648ef

Browse files
committed
Handle invalid code challenge methods
1 parent fa969a0 commit 7a648ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ func (s *Server) ValidationAuthorizeRequest(r *http.Request) (*AuthorizeRequest,
182182
if ccm == "" {
183183
ccm = oauth2.CodeChallengePlain
184184
}
185-
if ccm.String() != "" && !s.CheckCodeChallengeMethod(ccm) {
185+
if ccm != "" && !s.CheckCodeChallengeMethod(ccm) {
186186
return nil, errors.ErrUnsupportedCodeChallengeMethod
187187
}
188188

0 commit comments

Comments
 (0)