Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenFetcher ¶
type TokenFetcher interface { NewToken(audience string) (string, error) Token(audience string) (string, error) }
TokenFetcher implementers can fetch an auth0 token.
func NewTokenFetcher ¶
func NewTokenFetcher(httpClient *http.Client, tokenURL, clientID, clientSecret string) TokenFetcher
NewTokenFetcher creates a tokenFetcher that can get an access token for a client_credentials grant from Auth0.
The 3DSIM prod and gov token endpoint is: https://3dsim.auth0.com/oauth/token The 3DSIM qa token endpoint is: https://3dsim-qa.auth0.com/oauth/token
Click to show internal directories.
Click to hide internal directories.