summaryrefslogtreecommitdiff
path: root/vendor/code.superseriousbusiness.org/oauth2/v4/model.go
diff options
context:
space:
mode:
authorLibravatar Terin Stock <terinjokes@gmail.com>2025-03-09 17:47:56 +0100
committerLibravatar Terin Stock <terinjokes@gmail.com>2025-12-01 22:08:04 +0100
commitb1af8fd87760b34e3ff2fd3bda38f211815a0473 (patch)
tree9317fad1a7ec298d7a8d2678e4e422953bbc6f33 /vendor/code.superseriousbusiness.org/oauth2/v4/model.go
parent[chore] update URLs to forked source (diff)
downloadgotosocial-b1af8fd87760b34e3ff2fd3bda38f211815a0473.tar.xz
[chore] remove vendor
Diffstat (limited to 'vendor/code.superseriousbusiness.org/oauth2/v4/model.go')
-rw-r--r--vendor/code.superseriousbusiness.org/oauth2/v4/model.go67
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)
- }
-)