Documentation ¶
Overview ¶
Package auth0 provides methods to authenticate with auth0
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultClient = &Client{ formPost: formPost, viper: viper.GetViper(), }
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) IDToken ¶
IDToken returns a valid auth0 access token If a non-expired access token is found in the cache that token is returned. Otherwise the secret/refresh token from the application config is used to fetch a fresh one. If there is no secret configured this function errors.
func (*Client) Login ¶
Login performs the auth0 device authorization flow: https://auth0.com/docs/flows/call-your-api-using-the-device-authorization-flow This function prompts the user to navigate to a URL or directs the user there.
Click to show internal directories.
Click to hide internal directories.