Azure.Identity library from Microsoft to authenticate against Azure AD
Questions tagged [azure-identity]
174 questions
2
votes
0 answers
azure identity java sdk throwing MutableCoercionConfig error
I'm new to the java library, I learned that azure Java SDK can be used in the scala environment, So I have tried using the azure identity library in the data bricks environment
DBR Version 7.3 LTS
scala 2.12
maven coordinate…

user2981952
- 41
- 5
2
votes
2 answers
DefaultAzureCredential authentication failed. IntelliJCredential authentication failed. Error Details: Unrecognized field "tenantId"
I'm trying to create a resource group from an azure client using azure java SDK with Azure cloud resource management and identity APIs. I'm using the Azure Tools plugin in IntelliJ(I'm able to log in using both azure CLI and service principle).…

HyperioN
- 3,433
- 2
- 22
- 36
2
votes
1 answer
Does Azure.Identity library (e.g. DefaultAzureCredential) support token cache?
I have not found any details on whether Azure.Identity library does cache tokens or not. I am wondering if it properly caches the token per scope and renews it before the expiry or I have to write this functionality myself.
Any pointers to the…

Ilya Chernomordik
- 27,817
- 27
- 121
- 207
1
vote
1 answer
DefaultAzureCredential, InteractiveBrowserCredential, etc... from JavaScript Azure SDK throws error during compile time due to child_process not found
I am developing a Microsoft 365 / Office 2013 - 2021 Taskpane Add-in using Visual Studio Code that is written in JavaScript. The meat and potatoes of the add-in work. It's the sides that are causing trouble. To elaborate, I find myself stuck…

southsidesmoka
- 44
- 6
1
vote
0 answers
Sqlalchemy 1.14 + Fastapi (asyncpg), set connection expiry
Using Sqlalchemy 1.14 + Fastapi (asyncpg), in project
Trying to connect to azure poetgre db via azure identity access token.
But the access token expires every 90 minutes or so(and that's the limit of access token). So afterwards, the connection…

Adb101Cosmo
- 11
- 1
1
vote
1 answer
Azure managed identity accessing from different account
I have created an user-assigned identity using account A@hotmail.com and copied the clientid. After this I have assigned a role to this identity on a particular storage account. Also I have added this user-assigned identity to an azure function. Now…

Pulkit Sharma
- 390
- 2
- 14
1
vote
0 answers
How to check which credential Azure python SDK class DefaultAzureCredential is using for login
I'm using Azure SDK for python in the machine learning env and to create a Workspace instance I'm using the following code.
from azure.identity import DefaultAzureCredential
from azureml.core import Workspace
credential =…

Gabriel Padilha
- 121
- 8
1
vote
0 answers
How to add multiple identifierURIs from Powershell
I'm trying to add multiple identifierURIs from Powershell.
Normally I use this command to add single identifierURI:
Set-AzureADApplication -DisplayName "My App" -IdentifierURIs "api://$appId"
What more to include in that command to add multiple…

JeethK
- 23
- 5
1
vote
1 answer
Odd DefaultAzureCredential Behavior
I'm having some issues authenticating using DefaultAzureCredential.
If I run this code:
var credentials = new VisualStudioCredential();
var context = new TokenRequestContext(scopes: new string[] { _storageAccountUrl + "/.default" });
var token =…

Donny Kwitty
- 327
- 2
- 15
1
vote
1 answer
Using v2 token endpoint still giving v1 token: Azure Active Directory
I created a new app registration and set scopes for Application.Read.All and User.Read.All. I exposed one custom scope as access_as_user. Using v2 token endpoint still giving v1 tokens that is the main issue now.
v1 token endpoint:…

Manjeet
- 13
- 4
1
vote
1 answer
Retrieving ID/email from an Azure credential
We are working on our dev environment around Azure ML and Python.
As part of this, we are using azure-identity (DefaultAzureCredential) for authorization. This is going to either match a CLI credential or a "VSCode-logged-in" credential.
We would…

casparjespersen
- 3,460
- 5
- 38
- 63
1
vote
1 answer
B2C - Sign in with Google account not showing
We are in the process of setting Google OAuth to Azure B2C. What are the values to pass for client id and client secret when adding Google as identity provider. See this image: Configure Google as Identity Provider
When users run, sign up and sign…

Kathiea
- 15
- 5
1
vote
1 answer
How to authenticate automatically with Azure Identity library running Docker container locally
When running a .NET 6 application inside a an Azure Function v4 Linux container locally on my physical developer laptop, I want to authenticate with Azure using the Azure CLI credentials from the Docker host machine. I.e. I am already logged in to…

Michael
- 110
- 7
1
vote
1 answer
Authenticate Azure AD using Provided Access Token
I tried to find an Azure authentication mechanism that uses an access token as a parameter. but no luck. I just found ClientSecretCredential class that use tenant id, client id, and client secret as a parameter like below :
var…

Dika Arta Karunia
- 476
- 1
- 4
- 17
1
vote
1 answer
Is there any chance to extract specific permissions from few roles and create a new role with them
I want to create custom Azure role by extracting few properties from couple of roles like User Administrator and Application Administrator.
I saw few blogs and articles on creating custom RBAC role but my need is for Directory roles.
Permissions…

Sanam7
- 21
- 5