`swa login -cc` is not working
See original GitHub issueBefore filing this issue, please ensure you’re using the latest CLI by running swa --version
and comparing to the latest version on npm.
Are you accessing the CLI from the default port :4280
?
- No, I am using a different port number (
--port
) and accessing the CLI from that port - Yes, I am accessing the CLI from port
:4280
Make sure you are accessing the URL printed in the console when running
swa start
!
ℹ️ NOTE: Make sure to enable debug logs when running any swa
commands using --verbose=silly
Describe the bug A clear and concise description of what the bug is.
After I logined into Azure using swa login
. I can use swa login --clear-credentials
to login again. But when I use swa login -cc
command, it’s not working.
To Reproduce Steps to reproduce the behavior:
swa login
swa login -cc
Expected behavior A clear and concise description of what you expected to happen.
I expected swa login -cc
should open browser for sign-in process.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS:
Windows 10
- Version:
10.0.19043.2130
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top GitHub Comments
Hi @doggy8088, thanks for pointing this out, we have found the root cause and created a PR for the fix. The flag -cc is not working because -c is a global option for swa-cli.config.json path and that is taking priority when -cc flag is used. For fixing this, we have changed the short-form of flag from -cc to -CC. Sorry for the inconvenience caused.
I think you might able to implement
swa logout
for this. Sometimes I just want to logout to clear Azure credential cache.