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
Azure.Identity.InteractiveBrowserCredential Fails #17696
Comments
Thank you for your feedback. Tagging and routing to the team best able to assist. Please be aware that due to the holidays, responses may be delayed. |
Appending |
@luckerby Sorry for the delayed response. I'm glad you were able unblock yourself. As to your question. Unlike Graph, Azure hasn't fully transitioned to the v2 protocol, services generally only use However, I suspect the confusion here lies in the details of how Azure.Identity "converts" the v1 protocol to the v2 protocol. As I said above in v1 your essentially always requesting the azure-sdk-for-net/sdk/identity/Azure.Identity/src/ScopeUtilities.cs Lines 33 to 38 in 0af2bbf
I believe this explains behavior you're seeing as the For all credentials in Azure.Identity it is always correct to pass I hope this helps, and I'm sorry for the confusion here. If you have more questions or would like more clarification you can post them here or DM me. I'm going to close this issue as you have fixed your initial issue, and I don't think the breaking change is warranted. If you disagree, |
I'm working on running some queries using Azure Resource Graph with C#. In the process, I'm trying to get a token interactively using the following code:
When the code runs, a browser does open and I can successfully authenticate. However, once done, I run into the following error:
Within the error message, I know that
04b07795-8ddb-461a-bbee-02f9e1bf7b46
corresponds to Azure CLI, while797f4846-ba00-4fd7-ba43-dac1f8f63013
maps to Azure Resource Manager. I don't believe that I can grant permissions/consent, as the 2 apps in question belong to Microsoft.If I do a Fiddler trace, I can see the request below.
The content matches pretty well what's discussed in this issue, only that it's a token for Microsoft Graph there, and one for Azure Resource Manager in my issue.
Is there work still underway to support the interactive login for my scenario, or is it something that I'm messing up on my end?
I'm getting this on both .NET Core 3.1 / .NET 5.
Note that if I'm using
AzureCliCredential
, as seen below, things work as expected:Environment:
Azure Identity 1.3.0
dotnet --info
output for .NET Core projects):Windows 10 .NET Core 3.1.2
/Windows 10 .NET 5.0.1
Visual Studio 16.5.0 Preview 5.0
The text was updated successfully, but these errors were encountered: