Questions tagged [azure-authentication]

Use this tag for questions related to Azure Authentication. Microsoft Azure Active Directory (Azure AD) will help to add authentication and authorization to your web applications and web APIs.

3 common scenarios in which ADAL can be used for authenticating a client that accesses a remote resource:

  1. Authenticating users of a native client application running on a device
  2. Authenticating a confidential client application running on a web server
  3. Authenticating a confidential client application running on a server, on behalf of a user

Useful Resources:

ADAL

Code samples

488 questions
27
votes
1 answer

Azure: Service Principal ID vs Application ID

According to this documentation: Application and Service principal are clearly two different things. Application is the global identity and Service principal is per Tenant/AAD But This Documentation and This Stack Overflow Question suggest they are…
25
votes
6 answers

How to get current user identity in Azure Function with Azure Authentication?

I have created a new Function App, enabled App Service Authentication / Authorization for it ("Use Authentication / Authorization to protect your application and work with per-user data") and disabled non-authenticated requests. Everything seems to…
16
votes
4 answers

Azure Auth Token - AADSTS500113: No reply address is registered for the application

I am trying to obtain a token through postman using the following tutorial: https://learn.microsoft.com/en-us/azure/healthcare-apis/access-fhir-postman-tutorial I have successfully filled out the credentials then a pop up appears asking for my…
Funky
  • 12,890
  • 35
  • 106
  • 161
16
votes
3 answers

Keyword not supported: 'authentication' error for azure integrated connection

Getting Keyword not supported: 'authentication' error while trying to connect an azure DB through 'Active Directory Integrated' option in .NET core 2.1 project. Note: I am using EF core to connect the Data source.
14
votes
1 answer

Authentication difference between using AAD app key and Service Principal Password

To run applications in Azure, I need to create an Application in Azure AD and a corresponding Service Principal. Then my application authenticates against this App/Principal pair. To authenticate, I can create an application key in the App…
11
votes
2 answers

Why does my login to MS SQL with AzureML dataprep using Windows authentication fail?

I tried connecting to a MS SQL database using azureml.dataprep in an Azure Notebook, as outlined in https://learn.microsoft.com/en-us/azure/machine-learning/service/how-to-load-data#load-sql-data, using MSSqlDataSource, using code of the form…
Davide Fiocco
  • 5,350
  • 5
  • 35
  • 72
10
votes
1 answer

Angular Azure Active Directory B2C Authentication - CORS issue

I am implementing Azure Active Directory B2C authentication in Angular. I am using msal interceptor to connect Azure AD B2C. The authentication request fails with error Access to XMLHttpRequest at 'https://login.microsoftonline.com/...' from…
mani
  • 105
  • 1
  • 10
10
votes
4 answers

Endpoint belongs to different authority

trying to use Azure AD as OpenID provider with IdentityModel package However the problem is that it produces wrong endpoint configuration var client = new HttpClient(); const string identityUrl =…
oleksa
  • 3,688
  • 1
  • 29
  • 54
6
votes
1 answer

How to add optional claims to access token when using azure oauth client credential flow

In my scenario there is a Azure Application Registration (client_app) with credentials. This application is used to request an oauth2 access token. A second Application Registration (main_app) is the scope, which is providing App Roles and more. My…
Dan
  • 787
  • 1
  • 7
  • 20
6
votes
3 answers

Is it possible to assign a system managed identity to an Azure AD Enterprise Application that requires user assignment?

I have an Azure Function app that uses the integrated Azure AD Authentication configured via the Azure portal. Via the "Express" mode setup, this creates an Azure App Registration along with Enterprise Application. By default, this Enterprise…
6
votes
2 answers

How to use AzureDefaultCredentials with Azure Fluent?

I am trying to create an Azure Function in C# that regenerates storage keys. I'm struggling with finding the correct .NET library where I can authenticate and regenerate the keys. The easiest way that I have found to authenticate is by using the…
Wouter de Kort
  • 39,090
  • 12
  • 84
  • 103
6
votes
2 answers

Angular App Hosting Azure Storage Container - Azure Authentication Callback and Routing fails

I developed an Angular 8 App with NgxAdmin and hosted it as Azure Web App. It uses Azure AD Oauth2 Authentication with the help of NbAuthModule. Everything works fine. Now I tried to host the same SPA on an Azure Storage Account. I added the new…
MatterOfFact
  • 1,253
  • 2
  • 18
  • 49
6
votes
1 answer

How to test Azure Functions Authentication locally

Can someone please point me to the right direction with this; I have setup Azure Functions Authentications, it works fine when I deploy my function to Azure but locally the token is not validated hence the I can't retrieve the authenticated user. I…
6
votes
4 answers

How to obtain value of "x5t" using Certificate credentials for application authentication

I was trying to obtain JWT token from Microsoft Azure Active Directory using Certificate credentials for application authentication. I am struck at figuring out the value of "x5t". I have tried with SHA-1 fingerprint value available in the public…
6
votes
2 answers

Azure Web App EasyAuth callback throws error

I have an ASP.NET MVC app, running as Azure Web App. I use pre-authentication/EasyAuth, and for 5 deployment slots it works fine. Each of them has their own Azure AD App Registration. But the production site (not a deployment slot, root of the app)…
1
2 3
32 33