diff options
author | 2023-02-27 16:16:58 +0100 | |
---|---|---|
committer | 2023-02-27 16:16:58 +0100 | |
commit | d550f0ecbeaf32c77c260081f9c2f127fc867e57 (patch) | |
tree | 910ba5a37fef805441cdeaf8b7201a2c36a24778 /vendor/github.com | |
parent | [chore] bump go, build, and lint version (#1570) (diff) | |
download | gotosocial-d550f0ecbeaf32c77c260081f9c2f127fc867e57.tar.xz |
[chore] Bump oauth2/v4 -> v4.6.6.6-SSB (#1571)
Diffstat (limited to 'vendor/github.com')
-rw-r--r-- | vendor/github.com/superseriousbusiness/oauth2/v4/server/server.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/github.com/superseriousbusiness/oauth2/v4/server/server.go b/vendor/github.com/superseriousbusiness/oauth2/v4/server/server.go index 252179de1..05ca19245 100644 --- a/vendor/github.com/superseriousbusiness/oauth2/v4/server/server.go +++ b/vendor/github.com/superseriousbusiness/oauth2/v4/server/server.go @@ -313,6 +313,10 @@ func (s *Server) ValidationTokenRequest(r *http.Request) (oauth2.GrantType, *oau return "", nil, errors.ErrUnsupportedGrantType } + if !s.CheckGrantType(gt) { + return "", nil, errors.ErrUnsupportedGrantType + } + clientID, clientSecret, err := s.ClientInfoHandler(r) if err != nil { return "", nil, err |