Azure.Identity library from Microsoft to authenticate against Azure AD
Questions tagged [azure-identity]
174 questions
1
vote
0 answers
how to run get token while running the app with Visual studio and cache the token while using managed identity
I have .net 6 web api application and this app is hosted as Azure App Service and I am using Azure Managed Identity option to retrieve token and using Azure.Identity Version="1.7.0
var tokenCredential = new ChainedTokenCredential(
new…

user584018
- 10,186
- 15
- 74
- 160
1
vote
1 answer
Replicating InteractiveBrowserCredentials authentication flow in Blazor
I wish to upgrade a console application that uses Azure.ResourceManager to report information about subscriptions and resources in an arbitrary Azure subscription. The console application uses the InteractiveBrowserCredentials to pop up a browser…

Ray Hayes
- 14,896
- 8
- 53
- 78
1
vote
1 answer
Azure Function App Read/Write to table storage - InvalidAuthenticationInfoContent
I am attempting to use a managed identity to grant permission for my c# app to write to storage account table storage. Based on this documentation, I am able to use an Azure AD managed identity to grant access from the function app to my storage…

Jake Boomgaarden
- 3,394
- 1
- 17
- 31
1
vote
1 answer
What roles are available for Azure Container Instances operator
I'd like to assign a user assigned manage identity a role in resource group scope for Azure Container Instances related operation, such as list containers in a RG, start or stop an container group, is there any build-in role available for this…

lidong
- 556
- 1
- 4
- 20
1
vote
3 answers
AADSTS50020: User account '{EmailHidden}' from identity provider does not exist in tenant 'Microsoft Services' and cannot access the application
Using Azure.Identity Running dotnet 6.0.302 On Windows 10 Visual Studio 2022 v17.1.5 App Type - Asp.Net Core Web Api
I am trying to implement Azure App Configuration.
While using DefaultCredentials() the attempt to obtain an authentication token…

blogs4t
- 2,329
- 5
- 20
- 33
1
vote
1 answer
Access Azure Key Vault with Managed Identity on Azure Batch running .NET Console Application
Is it possible to access Azure Key Vault Secrets with Azure Managed Identity setup on the Azure Batch? I've read through Microsoft docs and the only option I technically see is using certificate based authentication to access key vault within the…

A. Wiley
- 11
- 3
1
vote
1 answer
Retrieving roles from token in an Azure function app using AAD as identity provider
I have a working setup in Azure where a Function App is protected by OAuth using an app registration in AAD.
In this app registration, I have defined two roles; Administrator and Developer. I have assigned both of these roles to myself, and now I…

jokarl
- 1,913
- 2
- 24
- 52
1
vote
1 answer
Revoke Oauth2 Access programatically on Microsoft Identity platform
So what I am searching for is a Revoke oauth2 Access Endpoint Like Google's on Microsoft Identity platform.
Basically I have an App x which uses Microsoft identity platform and graph API to gain Access and use Users Mail,Calendar,contacts etc.
When…

mohamed Arshad
- 361
- 3
- 14
1
vote
1 answer
APIM Gateway and protecting API with OAuth
I have API which is hosted in Azure. It is using Microsoft Identity platform for Authorization. Now we need to integrate APIM Gateway for the API. APIM also provides OAuth Authorization. So my question is should I configure OAuth for my API in…

Jashvita
- 553
- 3
- 24
1
vote
1 answer
Alternative approach to specify user managed identities with DefaultAzureCredential in python SDK
We are trying to authenticate DefaultAzureCredential using azure user-assigned managed identities with python SDK. The approach we see is to specify the client id as below, following the python SDK…

Helen Hu
- 11
- 4
1
vote
1 answer
Change Azure Subscription/tenant in Visual Studio 2022
I recently migrated my azure functions project from .net core 3.1 to .net 6 and thus, to VS 2022. I am using the Nuget Azure.Identity package to authenticate to other azure services. When running my app from windows terminal, I can choose the right…

Tarek Salha
- 307
- 3
- 12
1
vote
0 answers
Can I get logged in user details in App service for a user who has logged in from Microsoft Dynamics?
I am trying to get the logged in user details on my application hosted in app service. The user has logged in via Microsoft Dynamics using Azure AD. My application (APIs) will be called from the Dynamics portal after the authentication for the user.…

crzyMe
- 41
- 2
1
vote
1 answer
Azure Identity SDK (JS) How to Authenticate to User's Azure Account
I am designing my first dev tool with the Azure SDK (JavaScript), and I am having a difficult time understanding how to authenticate users in production so the dev tool can access the user's Azure account. The tool is going to retrieve metrics from…

Alma Eyre
- 23
- 1
- 4
1
vote
1 answer
Can't Access Storage Queue receiveMessages due AuthorizationPermissionMismatch
I have accessed Azure Storage Queue methods using ClientSecretCredential but on accessing
queue receiveMessages, queue peekMessages and deleteMessages it is giving me error
RestError: This request is not authorized to perform this operation using…

Kainat
- 63
- 1
- 8
1
vote
1 answer
GetAccessPolicyAsync/SetAccessPolicyAsync not working with Managed Identity
I am updating some legacy code to work with a managed identity instead of an access key.
The code:
Creates a DataLakeServiceClient
Uses that to get a file DataLakeFileSystemClient (var dlfsc = dlsc.GetFileSystemClient(containerName);)
Calls…

Hoppy
- 720
- 2
- 12
- 24