Questions tagged [azure-identity]

Azure.Identity library from Microsoft to authenticate against Azure AD

174 questions
1
vote
1 answer

Access Azure key vaults error because of self-signed CA

My local development workstation is behind company's firewall. It uses a self-sign CA which is not trusted. So when I try to access the Azure key vaults using DefaultAzureCredential from @azure/identity, I get the error FetchError: request to…
1
vote
1 answer

How to fix 'Azure.Identity.CredentialUnavailableException'

I am using Quickstart: Create an ASP.NET Core app with Azure App Configuration I have created an Azure App Configuration for centralized storage and management of application settings for an ASP.NET Core app. I have coded an app instance (tutorial…
Dave
  • 687
  • 7
  • 15
1
vote
2 answers

How to use user-assigned managed identity to access Key Vault for Function App Config in Azure

I've set up KeyVault configuration for one of my function apps in Azure. This is rather simple to do using a Startup class like this: using Azure.Identity; using Microsoft.Azure.Functions.Extensions.DependencyInjection; using…
Ian
  • 4,169
  • 3
  • 37
  • 62
1
vote
1 answer

Downloading Azure Stroage data using Azure AD in Python

I am trying to download data in Azure Storage container using Python. Using account keys is not an option, so I am trying to use Azure AD but have not been able to make it work so far. I am primarily using the doc here for reference:…
1
vote
2 answers

how to cache and refresh managed identity token

I am using azure managed identity and below code generates the required token to authenticate the api's. I am using var credential = new ManagedIdentityCredential(); var…
user584018
  • 10,186
  • 15
  • 74
  • 160
1
vote
0 answers

How to Force Refresh on the Access Token When Using Azure.Identity Lib DefaultAzureCredential.GetTokenAsync

I'm relying on DefaultAzureCredential.GetTokenAsync to get access token and auth my app to put/get resouurces on Azure. But looks like it doesn't mention how to do a force refresh on the access token. Is there a way to do that?
KevinC
  • 57
  • 5
1
vote
2 answers

Managed Identity Sql Auth with EF Core - Login failed for user ''

I have a dotnet 5 (isolated) Azure Function app that needs to access an Azure Sql Server database via EF Core 5. I would like to use the managed identity of the function app when making the sql server requests. What I tried I followed the…
1
vote
1 answer

Unable to retrieve cosmosDB data using azure JavaScript function and Key Vault secret

I am using Azure functions (JavaScript/node) to query and retrieve data from CosmosDB. That works fine. However, I haven't been successful at implementing key vault secrets to store the primary key for cosmosDB. I get the error: Executed…
1
vote
0 answers

Azure Adb2c Custom Web view for Loading User Flows in Native Android using MSAL

I was integrating azure adb2c on my native android app using MSAL. Currently I'm using createSingleAccountPublicClientApplication for my application. I have created sign-up and sign-in user flow and integrated with my application which is working…
1
vote
1 answer

Azure: Web Apps - List Application Settings from deployed nodejs app

I've deployed a nodeJs app to a Linux Azure AppService. Now I would like to list the server settings of that same app-service. Under the Identity tab I enabled the managed Identity for this AppService. In my NodeJs App I've tried the…
Jeanluca Scaljeri
  • 26,343
  • 56
  • 205
  • 333
0
votes
0 answers

Accessing Azure Key Vault using OSGi java platform

Is there a proven way to access an Azure Key Vault from a java app in an OSGi container? The Azure java libraries aren't OSGi modules and trying to wrap them myself is leading to an endless dependency management import nightmare that I can't…
Ben Newman
  • 33
  • 1
  • 3
0
votes
0 answers

Azure DefaultAzureCredential not getting access token in Node.js application

I have a React front end, Node.js backend app with Azure SQL DB that has Azure AD auth on the React side, and managed identities in Azure. I am trying to get the access token using DefaultAzureCredential from the @azure/identity package so I can…
0
votes
0 answers

Azure identity provider - refresh token strategy

I am currently with this project: https://github.com/microsoft/sample-app-aoai-chatGPT The project is running smoothly, and I have successfully set up the identity provider and configured all the necessary settings. However, I've encountered an…
KevJo
  • 11
  • 3
0
votes
0 answers

ClientAssertionCredential authentication failed when trying to access an Azure SQL Server from a pod in AKS using workload identity

I have an Azure infrastructure set up with Hub-spoke virtual network topology. In the spoke network I have an AKS cluster with workload identity enabled. Within the cluster I have deployed a few microservices, each running ASP.NET Core with the most…
0
votes
0 answers

Azure Computer Vision - "Unknown error in sending http request" when running locally

I recently created an ASP.NET Core Web API project which communicates with a Computer Vision instance to generate image captions. To authenticate the API Server to Computer Vision, I use key credentials (I plan to switch to managed identity later).…