Questions tagged [azure-identity]

Azure.Identity library from Microsoft to authenticate against Azure AD

174 questions
0
votes
1 answer

Create custom directory role from MS graph or Powershell

I want to create custom directory role with specific permissions like: microsoft.directory/users/* microsoft.directory/groups/* microsoft.directory/applications/* microsoft.directory/serviceprincipals/* If I create role from Portal, it asks me to…
0
votes
0 answers

not able to fetch token using DefaultAzureCredential and VS 2022

I am using Azure.Identity 1.7 and using VS 2022 , trying to get the token using DefaultAzureCredential, var tokenCredential = new DefaultAzureCredential(); var accessToken = await tokenCredential.GetTokenAsync(new TokenRequestContext(new[]…
0
votes
1 answer

Get AccessToken for Azure Storage from InteractiveBrowserCredential

I'm trying to get an accesstoken from a InteractiveBrowserCredential so I can make calls to the Azure Datalake, but when I try to do this I get this error message: System.Net.Http.HttpRequestException: 'Response status code does not indicate…
0
votes
1 answer

When Using Azure SDK with apache guacamole extension getting application startup failure

When adding the below dependency to extension/guacamole-auth-jdbc-base the application's startup fails with the error ClassNotFound for error. There must be some dependency conflict but not able to understand which dependency is causing the…
rest17
  • 25
  • 1
  • 6
0
votes
1 answer

Azure API Management & Function Apps - Only allow APIM access to apps with user assigned identity

Currently I am using a backend connection with a function key in the header to access my function apps. Instead of needing to store & pass around these keys, I would like to use a managed identity to implicitly grant access to my API Management, and…
0
votes
0 answers

Connect Python Script to O365 Email Address Using Azure-Identity

I am trying to migrate my simple python script that accesses an O365 email account using basic auth to modern auth: Here's the current setup. import exchangelib as exch credentials = exch.Credentials('my_username', 'my_password') configInfo =…
0
votes
2 answers

How do I get my multi-tenant Azure Function to access resources in another tenant?

I'm fairly confident I set everything up right for a multi-tenant app. In Tenant A: I created an Azure function and enabled a system managed identity. I granted the Managed Identity permissions to the Graph API. I confirmed my API can obtain an…
Appleoddity
  • 647
  • 1
  • 6
  • 21
0
votes
1 answer

How to manage tokens and refresh tokens on Azure.Identity with authorization code flow?

I am confused on how to use authorization code flow using the Azure.Identity library. Here is a code sample taken from there site (https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/dev/docs/tokencredentials.md). string[] scopes =…
lightning_missile
  • 2,821
  • 5
  • 30
  • 58
0
votes
1 answer

Gdal connection to Azure Data Lake Storage (Gen 2) virtual file using AZURE_STORAGE_ACCESS_TOKEN

I want to access my Azure Data Lake Storage (Gen 2) files from gdal version 3.5 using authentication with AZURE_STORAGE_ACCESS_TOKEN as described here:https://gdal.org/user/virtual_file_systems.html#vsiadls None of the other authentication options…
0
votes
0 answers

How do I apply Managed Identities to deploy Bicep files by using GitHub Actions?

The title says it all. Microsoft documentation suggests to use Managed Identities but lacks explanation on how to create them and apply one of these to using GitHub Actions. ref: https://github.com/MicrosoftDocs/azure-docs/issues/97499
AxD
  • 2,714
  • 3
  • 31
  • 53
0
votes
1 answer

How to handle session time out using azure identity authentication - .net core app 3.1

How can I sign out a user form ASP.NET Core MVC 3.1.27 application after 5 minutes of inactivity or so. I have created the application using Azure Identity platform (Azure AD) as authentication type. I tried implementing it using one of microsoft…
0
votes
1 answer

Creating Azure Runbook using a System assigned identity to make a GRAPH Request

Currently I am authenticating the system management identity using the resources found here Runbook Authentication Tutorial In the tutorial I am using this workflow to connect to my System management identity # Resources #…
0
votes
1 answer

Azure-quantum authentication is near to impossible with EnvironmentCredential

The code below to solve a simple problem on azure quantum never works. Microsoft, please help me with authentication. from azure.quantum.optimization import Problem, ProblemType, Term from typing import List from azure.quantum.optimization import…
0
votes
1 answer

Creating Evenhub topic with EventHubManagementClient

I'm trying to create an EventHub topic within a namespace through my .net core application. I'm a bit struggling with the authentication and couldn't figure out exactly what should I do to get the Token credentials from Azure. Should I use…
0
votes
1 answer

Azure File Share with OAuth2 credentials

Using the Azure Blob Storage SDK for Java, I can create a service client using OAuth2 credentials: BlobServiceClientBuilder builder = new BlobServiceClientBuilder(); builder.endpoint("https://" + account.abs_account_name +…
Wheezil
  • 3,157
  • 1
  • 23
  • 36