Documentation ¶
Overview ¶
Contains all the code needed to do an Auth0 login and retrieve a JWT. This is useful for command line tools that access the API and for integration tests It is not intended to be used by the API runtime itself, that should only ever parse JWTs passed to it in HTTP requests, it shouldn't generate an Auth0 JWT for any internal reasons
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetJWT ¶
func GetJWT(username string, password string, clientID string, clientSecret string, auth0domain string, redirectURI string, audience string, scope string) (string, error)
GetJWT performs an Auth0 login using the parameters and returns the JWT if successful
func InitAuth0ManagementAPI ¶
func InitAuth0ManagementAPI(cfg config.APIConfig) (*management.Management, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.