auth0-cli icon indicating copy to clipboard operation
auth0-cli copied to clipboard

`auth0 login` should respect the `--domain` flag for personal credentials login

Open davidharrigan opened this issue 2 years ago • 0 comments

Checklist

Describe the problem you'd like to have solved

My Auth0 account has many tenants. Selecting the correct tenant from the authorization consent UI is doable, but would be nice if the auth0 login --domain <tenant domain> worked for the device code flow login.

Describe the ideal solution

When --domain flag is provided for the device code login flow, the correct tenant is selected without having to search for it in the UI.

Alternatives and current workarounds

No response

Additional context

I believe this would work if we can pass the --domain value to the audience field here: https://github.com/auth0/auth0-cli/blob/54e9a30eeb58a4a7e40e04dc19af6869036bfb32/internal/auth/auth.go#L153 instead of using the hardcoded wildcard audience defined here: https://github.com/auth0/auth0-cli/blob/54e9a30eeb58a4a7e40e04dc19af6869036bfb32/internal/auth/auth.go#L53

davidharrigan avatar May 14 '24 15:05 davidharrigan