Azure.Identity library from Microsoft to authenticate against Azure AD
Questions tagged [azure-identity]
174 questions
0
votes
2 answers
Unable to download certificate from the azure key vault with user managed identity using C#
I have imported a certificate in "Certificates" section of Azure key vault
Created an user managed identity and added a role assignment of above mentioned key vault with contributor role.
Trying to download the certificate using below c# code,
…

Bharanidharan
- 11
- 1
0
votes
0 answers
ClientCredential flow with SwaggerUI give cors error
I need to authenticate Swagger UI against Azure Identity Provider.
I need to implement a ClientCredential flow. The authentication works if I use Postman, so the Azure Identity Provider is well configured!
Here the code I am using to authenticate…

Simone
- 2,304
- 6
- 30
- 79
0
votes
0 answers
How can I call a Graph API from an Azure Function triggered by Power Automate without getting blocked by Conditional Access?
I apologize if I am describing this poorly. I have an Azure Function App that I intend to be triggered by a Power Automate custom connector. The Function App has AAD authentication set up.
In one of the functions, I am trying to retrieve a file from…

Dkontyko
- 1
0
votes
1 answer
Using DefaultAzureCredential Locally to access Azure Azure Key Vault (using IIS)
I've become quite frustrated trying to use Azure KeyVault to store and retrieve my secrets.
My C# code retrieves secrets from the vault and runs on a local IIS website. Here's the code that attempts to read a secret from my Azure vault:
var…

Ayo Adesina
- 2,231
- 3
- 37
- 71
0
votes
1 answer
ChainedTokenCredential results in a wrong token when requested from MS Graph in Azure
Trying to access MS Graph as web app running on App Service, according to instructions found here:
Tutorial: Access Microsoft Graph from a secured app as the app
Everything works fine when run locally. The same code however returns a faulty access…

flip
- 1,271
- 14
- 28
0
votes
1 answer
Unable to create Azure Accessreview with c# with GraphClient
I need help creating an access review. The sample code here seems to be old https://learn.microsoft.com/en-us/graph/api/accessreviewset-post-definitions?view=graph-rest-1.0&tabs=csharp#request
But in the code .PostAsync was not available
Here is my…
0
votes
1 answer
Why do my collegues keep getting the "admin consent required" page, but I don't when trying to log into my MSGraph cl-app?
I've made a command-line app in java that uses the MS Graph api. It interacts with my school's Teams environment, so it largely uses the Education api from MS Graph, which consists almost solely of "admin consent" endpoints.
I have based my app on…

Mark Rensen
- 129
- 1
- 7
0
votes
1 answer
Starting a container instance from Python SDK - problems with permissions
I am trying to run a docker container on Azure from my container registry. With the CLI, it works beautifully through:
az login
az container create -g RESOURCE-GROUP --name INSTANCE-GROUP --image workers.azurecr.io/MY-IMAGE:latest…

Bertil Johannes Ipsen
- 1,656
- 1
- 14
- 27
0
votes
1 answer
Facing Issues while retrieving token for local development in c# via Azure.Identity
I am developing a azure function which needs to connect to Microsoft Dataverse via managed Identity. During local development I have added my azure account in visual studio and selected for azure function authentication. I'm using the below code to…

Ashish Gupta
- 1
- 2
0
votes
0 answers
IllegalName: com/azure/core/implementation/serializer/MalformedValueException
Hi all,I'm using this…

Sky
- 1
- 1
0
votes
0 answers
Why is DefaultAzureCredential() not reading Environment variables?
I am setting up a .Net Standard app to get secrets from an Azure secret vault. This is running on my local machine, so any Environment reference is to the local environment on my machine.
public string GetSecret()
{
var…

Mike
- 629
- 5
- 18
0
votes
0 answers
How to check of user authentication prior to load of ASP.Net MVC controller
I have an ASP.NET MVC 4.8 project where we use jQuery for autocomplete textbox. This app is using Azure AD authentication / Microsoft identity.
In the app there is a page which has the AutoComplete textbox. It works fine. However, after…

Jashvita
- 553
- 3
- 24
0
votes
1 answer
How to access Azure Keyvault via private endpoint in Python?
For security purpose, I have disabled public access under Networking Tab in Keyvault and have a private endpoint in place. Both keyvault and private endpoint reside in same resource group. I have an app registration for my application for which I…

potterson11
- 147
- 7
0
votes
1 answer
How to get a TokenCredential from a ServiceClientCredential object?
In my application, we presently are using ServiceClientCredentials from Microsoft.Rest. We are migrating parts of our application over to start using Azure.ResourceManager's ArmClient.
Basically all of our previous application integrations into…

FoxDeploy
- 12,569
- 2
- 33
- 48
0
votes
1 answer
How I can protect Azure Function by authorization?
I am starting with the Azure function in which I am creating API Function. After creating that function, I need to protect it.
Previously, I used the Microsoft.Identity.Platform to protect API's recourses, in which I created a registration in Azure…

Jashvita
- 553
- 3
- 24