Documentation
¶
Index ¶
- Variables
- func Challenge(verifier string) string
- func Delete() error
- func LoginURL(uiBase, redirectURI, state, challenge string) (string, error)
- func NewState() (string, error)
- func NewVerifier() (string, error)
- func Save(creds Credentials) error
- func SaveTo(dir string, creds Credentials) error
- type Credentials
- type Login
Constants ¶
This section is empty.
Variables ¶
View Source
var OpenBrowser = browser.OpenURL
Functions ¶
func NewVerifier ¶
func Save ¶
func Save(creds Credentials) error
func SaveTo ¶
func SaveTo(dir string, creds Credentials) error
Types ¶
type Credentials ¶
type Credentials struct {
EdgeURL string `json:"edge_url,omitempty"`
SessionToken string `json:"session_token"`
UserToken string `json:"user_token,omitempty"`
UserID string `json:"user_id,omitempty"`
Email string `json:"email,omitempty"`
DisplayName string `json:"display_name,omitempty"`
Permissions []string `json:"permissions,omitempty"`
Groups []string `json:"groups,omitempty"`
SuperUser bool `json:"super_user,omitempty"`
IdleTimeout int64 `json:"idle_timeout,omitempty"`
ExpiryDate string `json:"expiry_date,omitempty"`
}
func Load ¶
func Load() (Credentials, error)
func LoadFrom ¶
func LoadFrom(dir string) (Credentials, error)
Click to show internal directories.
Click to hide internal directories.