gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit d550f0ecbeaf32c77c260081f9c2f127fc867e57
parent 4bb3f59324fcca56373f960b34eb60e0f1c40beb
Author: tobi <31960611+tsmethurst@users.noreply.github.com>
Date:   Mon, 27 Feb 2023 16:16:58 +0100

[chore] Bump oauth2/v4 -> v4.6.6.6-SSB (#1571)


Diffstat:
Mgo.mod | 2+-
Mgo.sum | 4++--
Mvendor/github.com/superseriousbusiness/oauth2/v4/server/server.go | 4++++
Mvendor/modules.txt | 2+-
4 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/go.mod b/go.mod @@ -43,7 +43,7 @@ require ( github.com/stretchr/testify v1.8.1 github.com/superseriousbusiness/activity v1.2.1-gts github.com/superseriousbusiness/exif-terminator v0.5.0 - github.com/superseriousbusiness/oauth2/v4 v4.3.2-SSB + github.com/superseriousbusiness/oauth2/v4 v4.3.2-SSB.0.20230227143000-f4900831d6c8 github.com/tdewolff/minify/v2 v2.12.4 github.com/ulule/limiter/v3 v3.11.0 github.com/uptrace/bun v1.1.10 diff --git a/go.sum b/go.sum @@ -548,8 +548,8 @@ github.com/superseriousbusiness/exif-terminator v0.5.0 h1:57SO/geyaOl2v/lJSQLVcQ github.com/superseriousbusiness/exif-terminator v0.5.0/go.mod h1:d5IkskXco/3XRXzOrI73uGYn+wahJEqPlQSSqn6jxSw= github.com/superseriousbusiness/go-jpeg-image-structure/v2 v2.0.0-20220321154430-d89a106fdabe h1:ksl2oCx/Qo8sNDc3Grb8WGKBM9nkvhCm25uvlT86azE= github.com/superseriousbusiness/go-jpeg-image-structure/v2 v2.0.0-20220321154430-d89a106fdabe/go.mod h1:gH4P6gN1V+wmIw5o97KGaa1RgXB/tVpC2UNzijhg3E4= -github.com/superseriousbusiness/oauth2/v4 v4.3.2-SSB h1:PtW2w6budTvRV2J5QAoSvThTHBuvh8t/+BXIZFAaBSc= -github.com/superseriousbusiness/oauth2/v4 v4.3.2-SSB/go.mod h1:uYC/W92oVRJ49Vh1GcvTqpeFqHi+Ovrl2sMllQWRAEo= +github.com/superseriousbusiness/oauth2/v4 v4.3.2-SSB.0.20230227143000-f4900831d6c8 h1:nTIhuP157oOFcscuoK1kCme1xTeGIzztSw70lX9NrDQ= +github.com/superseriousbusiness/oauth2/v4 v4.3.2-SSB.0.20230227143000-f4900831d6c8/go.mod h1:uYC/W92oVRJ49Vh1GcvTqpeFqHi+Ovrl2sMllQWRAEo= github.com/tdewolff/minify/v2 v2.12.4 h1:kejsHQMM17n6/gwdw53qsi6lg0TGddZADVyQOz1KMdE= github.com/tdewolff/minify/v2 v2.12.4/go.mod h1:h+SRvSIX3kwgwTFOpSckvSxgax3uy8kZTSF1Ojrr3bk= github.com/tdewolff/parse/v2 v2.6.4 h1:KCkDvNUMof10e3QExio9OPZJT8SbdKojLBumw8YZycQ= diff --git 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 @@ -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