Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Auth0Config ¶
type AuthEnvResponse ¶
type AuthEnvResponse struct {
Auth0 Auth0Config `json:"auth0"`
Language string `json:"language"`
}
func FetchAuthEnv ¶
func FetchAuthEnv(workspaceURL string, httpClient *http.Client) (*AuthEnvResponse, error)
type DeviceCodeResponse ¶
type DeviceCodeResponse struct {
DeviceCode string `json:"device_code"`
UserCode string `json:"user_code"`
VerificationURI string `json:"verification_uri"`
ExpiresIn int `json:"expires_in"`
Interval int `json:"interval"`
VerificationURIComplete string `json:"verification_uri_complete"`
}
func RequestDeviceCode ¶
func RequestDeviceCode(workspaceURL string, httpClient *http.Client, envInfo *AuthEnvResponse) (*DeviceCodeResponse, error)
type TokenResponse ¶
type TokenResponse struct {
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token,omitempty"`
IDToken string `json:"id_token,omitempty"`
Scope string `json:"scope"`
ExpiresIn int `json:"expires_in"`
TokenType string `json:"token_type"`
Error string `json:"error,omitempty"`
ErrorDesc string `json:"error_description,omitempty"`
}
func PollForToken ¶
func PollForToken(deviceCodeRes *DeviceCodeResponse, envInfo *AuthEnvResponse) (*TokenResponse, error)
func RefreshAccessToken ¶
Click to show internal directories.
Click to hide internal directories.