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

swa-cli login Failed to setup project: Cannot delete credentials #927

Open
1 task
cello86 opened this issue Feb 13, 2025 · 1 comment
Open
1 task

swa-cli login Failed to setup project: Cannot delete credentials #927

cello86 opened this issue Feb 13, 2025 · 1 comment

Comments

@cello86
Copy link

cello86 commented Feb 13, 2025

Before filing this issue, please ensure you're using the latest CLI by running swa --version and comparing to the latest version on npm.

# node --version
v22.14.0
#  npm --version
10.9.2
# swa --version
2.0.3

Are you accessing the CLI from the default port :4280 ?

  • Yes

Describe the bug
after the login via az login the login via swa login with the option --clear-credentials fails.

To Reproduce
Steps to reproduce the behavior:

  1. login via az li
  2. execute swa login with --clear-credentials option
  3. See error

Expected behavior
The client can connect to swa with different credentials.

Screenshots

#  swa login --tenant xxx --client-id xxx --client-secret xxx- -subscription-id xxx --resource-group rg-test-we --app-name swa-test-we --clear-credentials --verbose=silly

Welcome to Azure Static Web Apps CLI (2.0.3)

Getting config file options from "swa-cli.config.json"...
Config file does not exist at "swa-cli.config.json"
Checking Azure session...
Executing authenticateWithAzureIdentity
- details:
  - tenantId: xxx
  - clientId: xxx
  - clientSecret: xxx
 - useKeychain: true
Keychain is enabled
Executing swaCliPersistencePlugin
Clearing keychain credentials
Clearing credentials cache
Machine ID: <hidden>
Invoking crypto service
deleting credentials from keychain
 - fullKey: xxx
Deleting credentials from native keychain
Getting keychain reference
isKeychainEnabled: true
KeychainCache: undefined
Attempting to load native keychain
✖ Failed to setup project: Cannot delete credentials

✖ If you believe this behavior is unexpected, please raise a GitHub issue at:
  https://github.com/Azure/static-web-apps-cli/issues/new/choose

Desktop (please complete the following information):

  • OS: RHEL
  • Version 9.5

Additional context
N/A

@cello86
Copy link
Author

cello86 commented Feb 13, 2025

I raised the ticket with more details similar to #923

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

No branches or pull requests

1 participant