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

force:auth:web:login for already-auth'ed user but different alias doesn't update alias (recent regression?) #1031

Closed
SCWells72 opened this issue Jun 2, 2021 · 4 comments
Labels
bug Issue or pull request that identifies or fixes a bug investigating We're actively investigating this issue

Comments

@SCWells72
Copy link

SCWells72 commented Jun 2, 2021

I had a user report a behavior in IC2 where he added an OAuth connection which uses force:auth:web:login under the hood and that username/alias combination wasn't available afterward. After digging into the logs to see the embedded execution of force:auth:web:login followed by force:org:list, I was able to see that the provided username was in the list from the latter, but it was associated with a different alias than the one provided to force:auth:web:login. I then reproduced this locally on sfdx-cli/7.103.0 win32-x64 node-v14.17.0 by doing the following:

sfdx force:auth:web:login -a alias1 # Log in successfully via browser with username '[email protected]'
sfdx force:org:list                 # shows '[email protected]' as having alias 'alias1'
sfdx force:auth:web:login -a alias2 # Log in successfully via browser with username '[email protected]'
sfdx force:org:list                 # still shows '[email protected]' as having alias 'alias1' when it should be 'alias2'

Please let me know if you need more details.

@SCWells72 SCWells72 added the investigating We're actively investigating this issue label Jun 2, 2021
@github-actions
Copy link

github-actions bot commented Jun 2, 2021

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

@SCWells72 SCWells72 changed the title Recent regression: force:auth:web:login for already-auth'ed user but different alias doesn't update alias force:auth:web:login for already-auth'ed user but different alias doesn't update alias (recent regression?) Jun 2, 2021
@mshanemc mshanemc added the bug Issue or pull request that identifies or fixes a bug label Jun 2, 2021
@github-actions
Copy link

github-actions bot commented Jun 2, 2021

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

@uip-robot-zz
Copy link

This issue has been linked to a new work item: W-9351642

@mshanemc
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug investigating We're actively investigating this issue
Projects
None yet
Development

No branches or pull requests

3 participants