Questions tagged [azure-identity]

Azure.Identity library from Microsoft to authenticate against Azure AD

174 questions
0
votes
1 answer

.Net core 6 API authentication with client credentials

API's authentication configfiguration code looks like the following: builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme) .AddMicrosoftIdentityWebApi(jwtBearerOptions => …
Joshua
  • 65
  • 5
0
votes
1 answer

Decoding azure access token obtained by client credential flow

Got access token using azure.identity ClientSecretCredential client credential flow but when trying to decode using the PyJwt library giving me the below error. ValueError: Could not deserialize key data. The data may be in an incorrect format or…
m9m9m
  • 1,655
  • 3
  • 21
  • 41
0
votes
1 answer

MS Login API asking for Admin consent for registering with MS azure App

I have made one app for MS team integration for work accounts. In Azure AD I have consented to all permissions required for chats and channels. But still the app is asking for admin consent when people from other work account trying to login as…
0
votes
1 answer

C# DefaultAzureCredentials + Visual Studio

Right now I'm converting our apps from connecting to Azure App Configs and Azure Key Vaults using Client IDs + Secrets to using the DefaultAzureCredentials. Overall, I like the additional security that I'm gaining. And that I can govern access via…
0
votes
1 answer

Unable to remove system assigned managed identity from Azure ContainerApp

I assigned a system assigned managedidentity to a containerApp through the Azure Portal. It has the role of AzrPull set at both the subscription level and registry level. I try to remove the managedidentity through CLI az containerapp identity…
0
votes
0 answers

How to correctly store Azure Identity credentials on azure app service

Building an ASP.Net Core multi-tenant web app on .Net 6 with Azure AD authentication and permissions to access the MS Graph API as the app. All works well but I'm confused. To add Azure AD authentication, this code is added to my Program.cs to find…
0
votes
1 answer

Connect to OneDrive using Microsoft Graph and C# not working

I was trying to create a very simple app to connect to my OneDrive and receive a list of the various files that I have hosted on OneDrive. This is the code: string clientId = "My client Id"; string clientSecret = "The secret id value"; string…
0
votes
1 answer

How can I retrieve Azure Key Vault secrets in an Azure ML training job with a system-assigned managed identity?

No token received using an azure compute cluster as a system-assigned managed identity in a training job Package Name & Version: azure-identity==1.12.0 azure-keyvault-secrets==4.6.0 **Python Version: **: 3.9 Describe the bug I am trying to run a…
jackc
  • 1
  • 1
0
votes
0 answers

How do I Setup Azure Functions TokenRequestContext Scopes

I am using a HttpClient to call an Azure Function App from an another Azure Function App, I am using a DelegatingHandler And i can't remember how to activate the Scope api://{someGuid}/.default However I have also realized I should be able to…
0
votes
1 answer

Azure request to API endpoint returns 401 Unauthorized when given an access token

We have a Python code that tries to query an API deployed on Microsoft Azure. The Code first requests an access token from the API using azure-identity library and then sends the token in the Authorization header of the request like the…
0
votes
1 answer

vscode azure app configuration 403 forbidden

I'm developing a c# azure function app using vscode on mac. I have the Azure extension installed and I've used it to login to azure. I have an integration test that attempts to read from an app configuration as follows: string endpoint =…
0
votes
2 answers

AAD Access token per API

Current Behavior - From our service-A, we are calling service-B. We are currently using client_credentials as a way to generate access_token for service-B(as shown below). Service-B is validating token generated at their end and everything is…
0
votes
1 answer

Azure Identity and Resource Manager not finding subscriptions in Visual Studio

Just getting started with Resource Manager in Visual Studio, but I cannot clear the first hurdle. When I use the following code, client.GetDefaultSubscriptionAsync() returns the following error: System.InvalidOperationException: 'No subscriptions…
0
votes
1 answer

How to write message into Azure storage queue with DefaultAzureCredential

Following issue: The below code snippet works to the point, where the queue is created with queue.createIfNotExists();: import com.azure.identity.DefaultAzureCredential; import com.azure.storage.queue.QueueClient; import…
sl3dg3
  • 5,026
  • 12
  • 50
  • 74
0
votes
0 answers

Azure File Share, auth. via Azure AD Kerberos for hybrid identities over SMB

On-prem ADDS identity is synced to Azure AD via AD Connect. We also have ADDS VM running in Azure. General purpose v2 storage account file share was created. Azure AD Kerberos identity based access was configured according to this MS guide. I also…
dan
  • 505
  • 1
  • 8
  • 26