Documentation ¶
Index ¶
- Constants
- Variables
- func Auth0ApiBaseUrl(domain string) string
- func Auth0ApiOauthUrl(domain string) string
- func CheckFileExists(fs FileSystem, filePath string) bool
- func CreateConfigFolder()
- func ReadCredentialsFile(filePath string, tenant string) (*ini.File, error)
- func SaveCredentialsFile(config ClientAuth) error
- type ClientAuth
- type FileSystem
- type OSFileSystem
Constants ¶
View Source
const ( ConfigFile string = "credentials" ConfigFolder string = ".auth0" AppName string = "auth0-cli" EnvSessionBearerToken string = "AUTH0_SESSION_TOKEN" EnvSessionTokenExpiryTime string = "AUTH0_SESSION_EXPIRY" EnvSessionTenant string = "AUTH0_TENANT" EnvSessionApiUrl string = "AUTH0_SESSION_API_URL" Auth0ApiVersion string = "v2" )
Variables ¶
View Source
var ConfigPath = fmt.Sprintf("%s/%s/%s", HomeDir, ConfigFolder, ConfigFile)
View Source
var HomeDir = os.Getenv("HOME")
Functions ¶
func Auth0ApiBaseUrl ¶
func Auth0ApiOauthUrl ¶
func CheckFileExists ¶
func CheckFileExists(fs FileSystem, filePath string) bool
func CreateConfigFolder ¶
func CreateConfigFolder()
func ReadCredentialsFile ¶
func SaveCredentialsFile ¶
func SaveCredentialsFile(config ClientAuth) error
Types ¶
type ClientAuth ¶
func GetCredentials ¶
func GetCredentials(tenant string) (*ClientAuth, error)
type OSFileSystem ¶
type OSFileSystem struct{}
Click to show internal directories.
Click to hide internal directories.