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

Always prefer URL from org auth token #2104

Closed
szokeasaurusrex opened this issue Jul 18, 2024 · 0 comments · Fixed by #2122
Closed

Always prefer URL from org auth token #2104

szokeasaurusrex opened this issue Jul 18, 2024 · 0 comments · Fixed by #2122
Assignees

Comments

@szokeasaurusrex
Copy link
Member

Currently, if the user manually provides a URL (e.g. via --url) which is different from the URL encoded in the org auth token they are using, the CLI exits with an error stating that the provided URLs do not match. This provides a poor user experience (see #2089, for example).

The URL encoded in the auth token is likely the URL that the user actually wishes to use, so instead of erroring when there is a URL mismatch, we should simply raise a warning (or maybe just an info message) whenever a user manually provides a URL in addition to an org auth token, which encodes a URL, and we should proceed with using the URL in the org auth token.

This would make it clear to users that setting a URL is unnecessary when using an org auth token, and would generally provide a better user experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant