Describe the bug
The docs say that the difference between vsts-npm-auth and ado-npm-auth is that:
- vsts-npm-auth is Windows only and uses MSAL authentication.
- ado-npm-auth is cross-platform and uses the node-azureauth library, to wrap the azureauth-cli, which itself is a cross platform MSAL wrapper.
Given the above I would expect I could swap the vsts-npm-auth package with the ado-npm-auth package without any issue. However, I can authenticate using vsts-npm-auth but with ado-npm-auth I get:
Sorry, but we’re having trouble signing you in.
AADSTS50020: User account 'user-account' from identity provider 'https://sts.windows.net/9274ee3f-9425-4109-a27f-9fb15c10675d/' does not exist in tenant 'Microsoft' and cannot access the application '872cd9fa-d31f-45e0-9eab-6e460a02d1f1'(Visual Studio - Legacy) in that tenant. The account needs to be added as an external user in the tenant first. Sign out and sign in again with a different Azure Active Directory user account.
To Reproduce
Steps to reproduce the behavior:
- Execute
npm exec ado-npm-auth
Expected behavior
I expected authentication with the Azure DevOps registry to work.
Additional context
This might be an issue with my organizations AAD setup. But even if that's the case, perhaps the documentation needs to be updated to reflect further requirements since the vsts-npm-auth works for my org but this one does not.
Describe the bug
The docs say that the difference between vsts-npm-auth and ado-npm-auth is that:
Given the above I would expect I could swap the vsts-npm-auth package with the ado-npm-auth package without any issue. However, I can authenticate using vsts-npm-auth but with ado-npm-auth I get:
To Reproduce
Steps to reproduce the behavior:
npm exec ado-npm-authExpected behavior
I expected authentication with the Azure DevOps registry to work.
Additional context
This might be an issue with my organizations AAD setup. But even if that's the case, perhaps the documentation needs to be updated to reflect further requirements since the
vsts-npm-authworks for my org but this one does not.