From d550f0ecbeaf32c77c260081f9c2f127fc867e57 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 27 Feb 2023 16:16:58 +0100 Subject: [chore] Bump oauth2/v4 -> v4.6.6.6-SSB (#1571) --- vendor/github.com/superseriousbusiness/oauth2/v4/server/server.go | 4 ++++ vendor/modules.txt | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'vendor') 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 diff --git a/vendor/modules.txt b/vendor/modules.txt index e12a712ae..1648dbd98 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -636,7 +636,7 @@ github.com/superseriousbusiness/exif-terminator # github.com/superseriousbusiness/go-jpeg-image-structure/v2 v2.0.0-20220321154430-d89a106fdabe ## explicit; go 1.17 github.com/superseriousbusiness/go-jpeg-image-structure/v2 -# github.com/superseriousbusiness/oauth2/v4 v4.3.2-SSB +# github.com/superseriousbusiness/oauth2/v4 v4.3.2-SSB.0.20230227143000-f4900831d6c8 ## explicit; go 1.13 github.com/superseriousbusiness/oauth2/v4 github.com/superseriousbusiness/oauth2/v4/errors -- cgit v1.3