简体   繁体   中英

Azure Active Directory C#

I have an application with my own user system that I built for my company. We have azure active directory and I can not figure out how to use it for the life of me.

I simply want to send a username and password and find out if they are the user they say they are according to AD.

Where do I start?

According to your description, it seems that you want to authenticate to Azure AD using a username & password.

Here is a sample that demonstrate a .Net console application calling a web API that is secured using Azure AD. the application does not require user interaction through a Web browser:

1.The .Net application uses the Active Directory Authentication Library (ADAL) to obtain a JWT access token through the OAuth 2.0 protocol.

2.The access token is sent to the web API to authenticate the user.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM