mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 17:02:25 -05:00
[chore] Move deps to code.superseriousbusiness.org (#4054)
This commit is contained in:
parent
68ed7aba25
commit
ffde1b150f
955 changed files with 1970 additions and 3639 deletions
59
vendor/code.superseriousbusiness.org/oauth2/v4/model.go
generated
vendored
Normal file
59
vendor/code.superseriousbusiness.org/oauth2/v4/model.go
generated
vendored
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
package oauth2
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type (
|
||||
// ClientInfo the client information model interface
|
||||
ClientInfo interface {
|
||||
GetID() string
|
||||
GetSecret() string
|
||||
GetDomain() string
|
||||
GetUserID() string
|
||||
}
|
||||
|
||||
// ClientPasswordVerifier the password handler interface
|
||||
ClientPasswordVerifier interface {
|
||||
VerifyPassword(string) bool
|
||||
}
|
||||
|
||||
// TokenInfo the token information model interface
|
||||
TokenInfo interface {
|
||||
New() TokenInfo
|
||||
|
||||
GetClientID() string
|
||||
SetClientID(string)
|
||||
GetUserID() string
|
||||
SetUserID(string)
|
||||
GetRedirectURI() string
|
||||
SetRedirectURI(string)
|
||||
GetScope() string
|
||||
SetScope(string)
|
||||
|
||||
GetCode() string
|
||||
SetCode(string)
|
||||
GetCodeCreateAt() time.Time
|
||||
SetCodeCreateAt(time.Time)
|
||||
GetCodeExpiresIn() time.Duration
|
||||
SetCodeExpiresIn(time.Duration)
|
||||
GetCodeChallenge() string
|
||||
SetCodeChallenge(string)
|
||||
GetCodeChallengeMethod() CodeChallengeMethod
|
||||
SetCodeChallengeMethod(CodeChallengeMethod)
|
||||
|
||||
GetAccess() string
|
||||
SetAccess(string)
|
||||
GetAccessCreateAt() time.Time
|
||||
SetAccessCreateAt(time.Time)
|
||||
GetAccessExpiresIn() time.Duration
|
||||
SetAccessExpiresIn(time.Duration)
|
||||
|
||||
GetRefresh() string
|
||||
SetRefresh(string)
|
||||
GetRefreshCreateAt() time.Time
|
||||
SetRefreshCreateAt(time.Time)
|
||||
GetRefreshExpiresIn() time.Duration
|
||||
SetRefreshExpiresIn(time.Duration)
|
||||
}
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue