[英]How do I authenticate against Azure Active Directory from my client app?
I am building a small client application in C#. 我正在用C#构建一个小型客户端应用程序。 I am trying to call a web service that is secured using Azure Active Directory. 我正在尝试调用使用Azure Active Directory保护的Web服务。
How do I get a token from Azure Active Directory for use when calling the web service? 如何在调用Web服务时从Azure Active Directory获取令牌以供使用?
The AzureADSamples GitHub repo should have everything you need. AzureADSamples GitHub存储库应具有您所需的一切。
Either the NativeClient-DotNet (if you're doing impersonation) or NativeClient-Headless-DotNet (if you're using a single application account) examples should be very close to what you're doing. NativeClient-DotNet (如果您要进行模拟)或NativeClient-Headless-DotNet (如果您使用单个应用程序帐户)示例都应该非常接近您的操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.