Keppy
Keppy

Reputation: 491

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? I have tried to refer AADL from nuget but due to framework version we are unable to refer.

Microsoft.IdentityModel.Clients.ActiveDirectory

is above library available for .NET framework 2.0

Upvotes: 1

Views: 1098

Answers (1)

Tony Ju
Tony Ju

Reputation: 15629

is above library available for .NET framework 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?

The answer is yes. Just like @ Panagiotis Kanavos said, all Azure services work with HTTP APIs.

Reference:

https://learn.microsoft.com/en-us/azure/active-directory/develop/v1-oauth2-client-creds-grant-flow

Upvotes: 1

Related Questions