summaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-02-27 16:16:58 +0100
committerLibravatar GitHub <noreply@github.com>2023-02-27 16:16:58 +0100
commitd550f0ecbeaf32c77c260081f9c2f127fc867e57 (patch)
tree910ba5a37fef805441cdeaf8b7201a2c36a24778 /vendor
parent[chore] bump go, build, and lint version (#1570) (diff)
downloadgotosocial-d550f0ecbeaf32c77c260081f9c2f127fc867e57.tar.xz
[chore] Bump oauth2/v4 -> v4.6.6.6-SSB (#1571)
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