static-web-apps-cli icon indicating copy to clipboard operation
static-web-apps-cli copied to clipboard

swa login --use-device-code

Open doggy8088 opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

No.

Describe the solution you'd like A clear and concise description of what you want to happen.

In Azure CLI, there is a az login --use-device-code command that using Device Code Flow for sign-in.

In SWA, I wish to have the same behavior for sign-in Azure.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

N/A

Additional context Add any other context or screenshots about the feature request here.

doggy8088 avatar Oct 18 '22 18:10 doggy8088

Device Code login is currently implemented as fallback, but doesn't seem to work due to an upstream issue, see related issue here: https://github.com/Azure/azure-sdk-for-js/issues/22752

sinedied avatar Jan 17 '23 18:01 sinedied

We've recently added support for Azure CLI login, which allows you to use az login --use-device-code - once done, swa login will use the same authentication. This will be released in v2.0.0 (coming out this week).

adrianhall avatar Jul 23 '24 15:07 adrianhall