diff options
Diffstat (limited to 'vendor/code.superseriousbusiness.org/oauth2/v4/model.go')
| -rw-r--r-- | vendor/code.superseriousbusiness.org/oauth2/v4/model.go | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/vendor/code.superseriousbusiness.org/oauth2/v4/model.go b/vendor/code.superseriousbusiness.org/oauth2/v4/model.go deleted file mode 100644 index 9073e40ef..000000000 --- a/vendor/code.superseriousbusiness.org/oauth2/v4/model.go +++ /dev/null @@ -1,67 +0,0 @@ -package oauth2 - -import ( - "net/url" - "time" -) - -type ( - // ClientInfo the client information model interface - ClientInfo interface { - GetID() string - GetSecret() string - GetDomain() string - IsPublic() bool - 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) - } - - ExtendableTokenInfo interface { - TokenInfo - GetExtension() url.Values - SetExtension(url.Values) - } -) |
