summaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
Diffstat (limited to 'vendor')
-rw-r--r--vendor/github.com/superseriousbusiness/oauth2/v4/server/server.go4
-rw-r--r--vendor/modules.txt2
2 files changed, 5 insertions, 1 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
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