简体   繁体   中英

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 !!

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM