diff options
Diffstat (limited to 'vendor/github.com/superseriousbusiness/oauth2/v4/server/handler.go')
-rw-r--r-- | vendor/github.com/superseriousbusiness/oauth2/v4/server/handler.go | 6 |
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 |