Skip to content

Request to add support for credentials/profiles file #1234

Description

@mdecurtins

Checklist

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

feature requestA feature has been asked for or suggested by the community

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions