Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotAuthenticated = domain.ErrNotAuthenticated
Functions ¶
func BuildAuthorizeURL ¶
func BuildAuthorizeURL(authorizeURL string, cfg OAuthConfig, state string) string
Types ¶
type FileStore ¶
type FileStore struct {
Path string
}
func (FileStore) DeleteClientSecret ¶
func (FileStore) DeleteToken ¶
func (FileStore) LoadClientSecret ¶
func (FileStore) SaveClientSecret ¶
type LoginInput ¶
type OAuthConfig ¶
type Service ¶
type Token ¶
type Token struct {
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
TokenType string `json:"token_type"`
Scope string `json:"scope"`
ExpiresIn int64 `json:"expires_in,omitempty"`
CreatedAtUnix int64 `json:"created_at,omitempty"`
ExpiresAtUnix int64 `json:"expires_at,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.