[英]Get Azure AD Access Token from a .NET framework 2.0 ASP.NET app using WebClient or similar method
Is there a way to get Get Azure AD Access Token from a .NET framework 2.0 ASP.NET application using WebClient or similar method?有没有办法使用 WebClient 或类似方法从 .NET 框架 2.0 ASP.NET 应用程序获取 Get Azure AD 访问令牌? I have tried to refer AADL from nuget but due to framework version we are unable to refer.我曾尝试从 nuget 中引用 AADL,但由于框架版本的原因,我们无法引用。
Microsoft.IdentityModel.Clients.ActiveDirectory Microsoft.IdentityModel.Clients.ActiveDirectory
is above library available for .NET framework 2.0以上库可用于 .NET 框架 2.0
is above library available for .NET framework 2.0以上库可用于 .NET 框架 2.0
The answer is no.答案是不。
Is there a way to get Get Azure AD Access Token from a .NET framework 2.0 ASP.NET application using WebClient or similar method?有没有办法使用 WebClient 或类似方法从 .NET 框架 2.0 ASP.NET 应用程序获取 Get Azure AD 访问令牌?
The answer is yes.答案是肯定的。 Just like @ Panagiotis Kanavos said, all Azure services work with HTTP APIs.就像@Panagiotis Kanavos 所说,所有 Azure 服务都与 HTTP API 一起使用。
Reference:参考:
https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-oauth2-client-creds-grant-flow https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-oauth2-client-creds-grant-flow
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.