-
Notifications
You must be signed in to change notification settings - Fork 66
Description
Checklist
- I agree to the terms within the Auth0 Code of Conduct.
Describe the problem you'd like to have solved
The AWS CLI supports authentication using credentials stored in .aws/credentials
, and then referencing credentials for different tenants/tiers using the --profile
flag. It makes targeting different profiles in AWS very intuitive to use on the command line.
It would be amazing to have something similar in the Auth0 CLI!
Describe the ideal solution
Ideally, this feature would work almost identically to the same feature in the AWS CLI.
The user creates a file in a directory, e.g. ~/.auth0
, called profiles
or tenants
or something like that. The file is in TOML format, containing one or more blocks of the form:
[my_label]
client-id = <client_id>
client-secret = <client_secret>
domain = <tenant_domain>
scopes = <optional_scopes_strings>
The user could then simply authenticate via: auth0 login <my_label>
and the CLI would fetch the appropriate client credentials from the file and perform the authentication.
Thanks for your consideration!
Alternatives and current workarounds
It's possible to implement this now with Bash aliases or custom functions, but it would be great if it were officially supported in the Auth0 CLI.
Additional context
No response