Skip to content

Commit 86229d2

Browse files
committed
fix again
1 parent 4a33e7f commit 86229d2

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

handlers.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -546,12 +546,6 @@ func (h *OAuth2Handler) HandleToken(w http.ResponseWriter, r *http.Request) {
546546
return
547547
}
548548

549-
if grantType != "authorization_code" {
550-
h.logger.Error("OAuth2: Unsupported grant type: %s", grantType)
551-
http.Error(w, "Unsupported grant type", http.StatusBadRequest)
552-
return
553-
}
554-
555549
// Set redirect URI for token exchange
556550
redirectURI := clientRedirectURI
557551
if h.config.FixedRedirectURI != "" && !h.isValidRedirectURI(clientRedirectURI) {

0 commit comments

Comments
 (0)