简体   繁体   English

使用 WebClient 或类似方法从 .NET 框架 2.0 ASP.NET 应用程序获取 Azure AD 访问令牌

[英]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.

相关问题 从 Azure AD 支持的 .NET Framework MVC 应用程序获取访问令牌 - Get Access Token from Azure AD backed .NET Framework MVC app 如何使用 asp.net mvc 从 azure 获取访问令牌 - How to get the access token from azure using asp.net mvc ASP.NET Core 2.0 Web API Azure Ad v2令牌授权无效 - ASP.NET Core 2.0 Web API Azure Ad v2 Token Authorization not working 如何在ASP.NET Core中为Azure AD请求正确的访问令牌以访问Microsoft Graph - How do request a correct access token in ASP.NET Core for Azure AD to access Microsoft Graph 在 Azure 中部署 ASP.net 核心应用程序时,Azure AD 的 400 id 令牌无效 - 400 invalid id token for Azure AD when ASP.net core app is deployed in Azure 默认Razor Pages应用中的Asp.Net Core 2.0 Azure广告身份验证 - Asp.Net Core 2.0 Azure Ad authentication in default Razor Pages app 如何在 ASP.NET Core API 中查看 Azure AD 生成的访问令牌? - How to view access token generated by Azure AD in ASP.NET Core API? 如何从托管在 Azure 应用服务中的 .Net Framework Asp.Net 应用程序访问 Azure KeyValut? - How do I access an Azure KeyValut from an .Net Framework Asp.Net application hosted in an Azure App Service? 从 asp.net core 和 .net framework app 使用 EF - Using EF from asp.net core and .net framework app 如何将Daemon或Server的Azure AD OAuth2访问令牌和刷新令牌转换为C#ASP.NET Web API - How do I get Azure AD OAuth2 Access Token and Refresh token for Daemon or Server to C# ASP.NET Web API
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM