mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 15:12:26 -05:00 
			
		
		
		
	A brief note on the above change: Go does not seem to like version tagging outside of `v?[0-9\.]` formatting, so it translates `ssb-v4.5.3-1` to `v4.5.4-0.20250606121655-9d54ef189d42` and as such sees it as a "downgrade" compared to the previous `v4.9.0`. which functionally isn't a problem, everything still behaves as it should, but it means people can't just run `go get repo@latest` for this particular dependency. Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4245 Co-authored-by: kim <grufwub@gmail.com> Co-committed-by: kim <grufwub@gmail.com>
		
			
				
	
	
		
			67 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			67 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
| 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)
 | |
| 	}
 | |
| )
 |