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

10.27.1 - Your sign-in was successful but your admin requires the device requesting access to be managed by <Contoso> to access this resource. #2904

Open
pgbfnf opened this issue Jan 3, 2025 · 2 comments

Comments

@pgbfnf
Copy link

pgbfnf commented Jan 3, 2025

Unable to authenticate using "azcopy login" and device code (similar process with Azure CLI works fine - "az login --use-device-code")

in summary:

az login --use-device-code = works fine
azcopy login (which prompts for login using device code) = fails

Azure AD admin said "what you want to do is figure out how to get azcopy.exe to login using your existing credentials primary refresh token (ie no device code flow)"

@seanmroberts12
Copy link

Commenting for visibility as experiencing the same issue

@pgbfnf
Copy link
Author

pgbfnf commented Jan 3, 2025

NOTE - https://learn.microsoft.com/en-us/entra/identity/conditional-access/policy-block-authentication-flows
"To bolster security posture, Microsoft recommends blocking or restricting device code flow wherever possible."

the code needs to support not using device code flow for interactive logins (or use an existing token), as using a device code is deemed less secure by Microsoft

Ideally, this code should allow a connection with an already signed on user, who has a valid token for Azure AD. (either through the portal, azure cli or powershell)

Our company is blocking usage of device code logins, and also does not allow SAS tokens for storage accounts (instead requiring Entra ID auth, per Microsoft's recommendations).

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

2 participants