I want to authenticate the Active AD users in my application. Only authorized users should be able to login. My application components are
The Azure AD login credentials will be entered through the web client. Please let me know if the following is the correct way to do the authentication.
Get the Token by connecting to Azure AD through the web client. Send the token to web API for validation.
Thanks for your valuable suggestions.
We have reproduced authenticating AD Users in our environment, please check the below workaround.
Created .Net Core WebAPI 6.0 sample application, Published to Azure App Service.
In Azure Portal, navigate to your web app => Authentication => Add provider under Identity provider.

Click on Add Identity Provider, select Microsoft as an Identity Provider and Save.
App registrations section, check in the All applications- you can see the new app registration is available with the same name of your Web App.Authentication => Add a platform => Select Web and Add the Redirect URI.
Redirect URI - https://YourWebAppName.azurewebsites.net/.auth/login/aad/callback

OutPut :


References taken from : Configure App Service to use Azure AD login
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With