Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auth-cli login doesnt respect tenant #372

Closed
trondhindenes opened this issue Nov 13, 2021 · 2 comments · Fixed by #388
Closed

auth-cli login doesnt respect tenant #372

trondhindenes opened this issue Nov 13, 2021 · 2 comments · Fixed by #388
Labels
enhancement An enhancement or improvement to the SDK that could not be otherwise categorized as a new feature

Comments

@trondhindenes
Copy link

When doing auth0 login --tenant mytenant-dev.eu.auth0.com there's no guarantee that that is the tenant I will be authenticated against - it seems to be completely random if I have access to multiple tenants in my browser.

I would expect the login command to fail if I end up authenticated to a different tenant than specified - the current functionality is almost a security risk.

I've posted a couple of other issues regarding auth0-cli usage in a multi-tenant situation and I'm afraid the cli is not usable in it's current form for us because of these issues.

@Widcket
Copy link
Contributor

Widcket commented Dec 2, 2021

Hi @trondhindenes, thanks for raising this. When logging in to the CLI, you can select the tenant from the dropdown on the Universal Login page. The --tenant global flag has the purpose of picking a particular tenant among the ones you're currently logged in (to perform a particular operation), not picking the one to log in to.

I agree this flag should not be available on the login command.

@Widcket Widcket added the enhancement An enhancement or improvement to the SDK that could not be otherwise categorized as a new feature label Dec 2, 2021
@trondhindenes
Copy link
Author

thanks. From what I can see, I need to ensure that my browser is logged out from any auth0 sessions beofre running auth0 login to be able to be promted for the correct tenant. If i'm already logged in to a tenant, the auth0 cli just assumes that's the one I want to use. It's not very user-friendly for customers with multiple tenants.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or improvement to the SDK that could not be otherwise categorized as a new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants