AzureSMR icon indicating copy to clipboard operation
AzureSMR copied to clipboard

DeviceCode authentication doesn't work

Open joshdavari opened this issue 5 years ago • 2 comments

In createAzureContext(), authType is passed to azureAuthenticate() as part of the azureActiveContext parameter. azureAuthenticate() also has an authType parameter that defaults to "ClientCredential", which is passed to azureAuthenticateOnAuthType(). azureAuthenticateOnAuthType() then ignores whatever value was passed to createAzureContext and will always use "ClientCredential".

joshdavari avatar Feb 19 '19 20:02 joshdavari

we have the same issue! has anyone fixed it yet?

francescoPizzolon avatar May 24 '19 16:05 francescoPizzolon

Consider using the AzureR family instead of AzureSMR; this includes packages for interacting with storage, containers, VMs, and more. In particular, authentication is handled by AzureAuth which supports device code as well as several other methods.

hongooi73 avatar Jul 02 '19 10:07 hongooi73