Azure.Identity library from Microsoft to authenticate against Azure AD
Questions tagged [azure-identity]
174 questions
0
votes
1 answer
Azure Identity client library for Python picks up the wrong tenant ID
I'm using Azure Identity client library for Python to authenticate a local server for testing. It works well for the people that has no private tenantID under managedByTenants because the identity library would pick the homeTenantID for…

SLN
- 4,772
- 2
- 38
- 79
0
votes
2 answers
Azure MSAL: Using the Token cache with client credentials
The way I am obtaining a token for my apps looks currently like this:
IConfidentialClientApplication app = ConfidentialClientApplicationBuilder.Create(_clientId)
.WithClientSecret(_clientSecret)
.WithAuthority(new…

David Mason
- 915
- 1
- 9
- 27
0
votes
1 answer
Azure AD Acquire Token silent From web job
I'm trying to authenticate with Azure AD from windows service, so i tried to get access token using MSAL.NET library with acquiretokenbyIntegratedWindowsauth and it's working good on prem.
The intention is to migrate this windows service to azure…

Hassan
- 27
- 5
0
votes
2 answers
Issue while using com.microsoft.graph.requests.GraphServiceClient with Client credentials provider of azure identity
I'm trying upload and list the files from share point to using Graph Client of Microsoft. I followed the below documentation to do it.
Documentation URL https://learn.microsoft.com/en-us/graph/sdks/choose-authentication-providers?tabs=Java
Here is…

Mahesh Yadav
- 240
- 2
- 3
- 13
0
votes
1 answer
Validate username/password from Azure Active Directory
The current authorization is implemented as:
The Single Page Application (SPA) developed in react.js, posts username/password from the Login page to Web API and waits for the authentication token.
The Web API doesn't implement a standard identity…

Imran Yaseen
- 543
- 1
- 5
- 20
0
votes
0 answers
kubectl get AzureAssignedIdentities -A -o yaml is empty
I am trying to deploy an api version with the following templates:
"apiVersion": "apiextensions.k8s.io/v1",
"kind": "CustomResourceDefinition",
"metadata": {
"name": "azureassignedidentities.aadpodidentity.k8s.io"
},
"spec":{
"conversion": {
…

Joji
- 1
- 1
- 1
0
votes
1 answer
PSCredental objects in Azure Functions apps? cannot connect to M365 web services
System.Management.Automation.PSCredential appears to be missing in Azure Functions apps.
I need to query Exchange Online mailboxes for attribute "litigationHoldEnabled = $true" as part of a orchestration, to run daily.
I ran the following in debug…

AnthonyC
- 1
- 1
0
votes
1 answer
What is the best practice for certificates used to protect an Azure App in client credential flow
Many of my (confidential) apps are talking to each other via the client credential flow.
They request a token from the Azure Identity platform and use this token to authenticate against another app.
A while ago I used client secrets to do so, but…

David Mason
- 915
- 1
- 9
- 27
0
votes
1 answer
' ClientSecretCredential ' object has no attribute 'signed_session' error occurs when run the code below to get Key Vault infos
subscription_id = os.environ["AZURE_SUBSCRIPTION_ID"]
tenant_id = os.environ["AZURE_TENANT_ID"]
client_id = os.environ["AZURE_CLIENT_ID"]
client_secret = os.environ["AZURE_CLIENT_SECRET"]
credentials = ClientSecretCredential(tenant_id=tenant_id,…

Hilal
- 41
- 7
0
votes
0 answers
Azure Java SDK - ChainedTokenCredential not switching to next available TokenCredential in case of 403 forbidden error
Even though ChainedTokenCredential enables multiple TokenCredential implementations to be tried in order until one of the getToken methods returns an access token, but it can handle only authentication error but not authorization i.e., it will throw…

dev4java
- 86
- 1
- 8
0
votes
1 answer
Interactive Browser Credential "You can't sign in here with a personal account. Use your work or school account instead."
I am attempting to implement Interactive Browser Credential with Azure Identity (JS) in my app so that users can authenticate to their own Azure accounts for my dev tool. I got advice that app registration in Azure AD would be required on a Reddit…

Alma Eyre
- 23
- 1
- 4
0
votes
1 answer
Convert Entity Framework DB Connection to use Azure Identity using Powershell Credentials
We have an application that is setup to use EntityFramework. I need to update that application to access the database using Azure Identity. Basically I need to do the following:
Get the access token using AzurePowershell Credentials
Create the SQL…

Amy
- 185
- 15
0
votes
1 answer
Azure ad ID token without login page or user interaction
I'm setting conditional authorisation with nginx api gateway. For this conditional authorisation i need to use ID token from Azure ad.
I need to get ID token as an implicit flow without user interaction. I'm thinking to user SP account for this…

Siddu hadapad
- 3,023
- 5
- 15
- 26
0
votes
1 answer
Migrate loginWithUsernamePassword to @azure/identity
I migrate some code from @azure/ms-node-auth to @azure/identity which authenticates against Azure Active Directory (AAD) via loginWithUsernamePassword. The migration guide points to UsernamePasswordCredential class, but it denies my request.
//…

sschmeck
- 7,233
- 4
- 40
- 67
0
votes
1 answer
unable to use validate jwt in APIM for managed Identity token
We have a validate jwt policy in APIM to validate jwt token. we are generating token from our function app using the azure.identity library. till now we were using system assigned identity for generating the token using the below method.
var…

threeleggedrabbit
- 1,722
- 2
- 28
- 60