Skip to content

Commit ea58e54

Browse files
authored
Merge pull request #199 from ajpetersons/master
Handle invalid code challenge methods
2 parents fa969a0 + 7a648ef commit ea58e54

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)