Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOAuthAuthURL ¶
func GetOAuthTokenURL ¶
Types ¶
type AuthConfig ¶
type AuthConfig struct { ActiveProfile ProfileName `json:"active_profile"` Profiles map[ProfileName]SessionConfig `json:"profiles"` }
type Config ¶
type Config struct {
Auth AuthConfig `json:"auth"`
}
type ProfileName ¶
type ProfileName string
type SessionConfig ¶
type SessionConfig struct { ClientID string `json:"client_id"` ApiURL string `json:"api_url"` AppURL string `json:"app_url"` AccountID string `json:"account_id"` UserID string `json:"user_id"` Token oauth2.Token `json:"token"` CreatedAt time.Time `json:"created_at"` }
func (SessionConfig) GetOAuth2Config ¶
func (c SessionConfig) GetOAuth2Config() oauth2.Config
Click to show internal directories.
Click to hide internal directories.