summaryrefslogtreecommitdiff
path: root/vendor/github.com/superseriousbusiness/oauth2/v4/server/handler.go
diff options
context:
space:
mode:
authorLibravatar kim (grufwub) <grufwub@gmail.com>2021-09-08 20:20:06 +0100
committerLibravatar kim (grufwub) <grufwub@gmail.com>2021-09-08 20:20:06 +0100
commitfce3ba63825f563b2ddb24fcf44847eef3547b5b (patch)
tree941aca5281a32f2c7a1587d303e6440cc44141c1 /vendor/github.com/superseriousbusiness/oauth2/v4/server/handler.go
parentrework media processing a little bit (#191) (diff)
downloadgotosocial-fce3ba63825f563b2ddb24fcf44847eef3547b5b.tar.xz
update oauth library -> v4.3.1-SSB
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
Diffstat (limited to 'vendor/github.com/superseriousbusiness/oauth2/v4/server/handler.go')
-rw-r--r--vendor/github.com/superseriousbusiness/oauth2/v4/server/handler.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/github.com/superseriousbusiness/oauth2/v4/server/handler.go b/vendor/github.com/superseriousbusiness/oauth2/v4/server/handler.go
index 5a34f1a94..c871b1924 100644
--- a/vendor/github.com/superseriousbusiness/oauth2/v4/server/handler.go
+++ b/vendor/github.com/superseriousbusiness/oauth2/v4/server/handler.go
@@ -16,7 +16,7 @@ type (
ClientAuthorizedHandler func(clientID string, grant oauth2.GrantType) (allowed bool, err error)
// ClientScopeHandler check the client allows to use scope
- ClientScopeHandler func(clientID, scope string) (allowed bool, err error)
+ ClientScopeHandler func(tgr *oauth2.TokenGenerateRequest) (allowed bool, err error)
// UserAuthorizationHandler get user id from request authorization
UserAuthorizationHandler func(w http.ResponseWriter, r *http.Request) (userID string, err error)
@@ -25,9 +25,9 @@ type (
PasswordAuthorizationHandler func(username, password string) (userID string, err error)
// RefreshingScopeHandler check the scope of the refreshing token
- RefreshingScopeHandler func(newScope, oldScope string) (allowed bool, err error)
+ RefreshingScopeHandler func(tgr *oauth2.TokenGenerateRequest, oldScope string) (allowed bool, err error)
- //RefreshingValidationHandler check if refresh_token is still valid. eg no revocation or other
+ // RefreshingValidationHandler check if refresh_token is still valid. eg no revocation or other
RefreshingValidationHandler func(ti oauth2.TokenInfo) (allowed bool, err error)
// ResponseErrorHandler response error handing