Ravi Solanki
Ravi Solanki

Reputation: 87

Azure AD - Validate Token

Is there any way to validate token of Azure Active Directory using HttpClient in C# just like Facebook is providing?

Facebook Method to validate token:

string verifyTokenEndPoint = string.Format("https://graph.facebook.com/debug_token?input_token={0}&access_token={1}", authToken, appToken);

Same way I am looking for the Azure Active Directory, May be with GraphApi or Alternate way?

Please help me out !!

Upvotes: 1

Views: 2345

Answers (1)

Chris Gillum
Chris Gillum

Reputation: 15042

There is no HTTP endpoint for validating JWTs issued by Azure AD. Instead, you need to use the JSON Web Token Handler SDK from the Azure AD team (or the equivalent for other platforms).

Sample code here: https://github.com/Azure-Samples/active-directory-dotnet-webapi-manual-jwt-validation

Upvotes: 4

Related Questions