mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 10:52:25 -05:00
update oauth library -> v4.3.1-SSB
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
This commit is contained in:
parent
2b14b20802
commit
fce3ba6382
32 changed files with 1019 additions and 714 deletions
6
vendor/github.com/superseriousbusiness/oauth2/v4/server/handler.go
generated
vendored
6
vendor/github.com/superseriousbusiness/oauth2/v4/server/handler.go
generated
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue