Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can azure/msal-node validate a token?

Tags:

msal.js

I have been using passport with the passport-azure_ad extension to valid an azure ad jwt token in my server api. The passport-azure-ad package is now in maintenance mode and suggests that the code has been moved to azure/msal.

So does azure/msal-node provide a function to validate the azure ad jwt access token?

like image 530
Douglas Woods Avatar asked Apr 26 '26 18:04

Douglas Woods


1 Answers

I've also been struggling with this for a while.

According to Sameera Gajjarapu, a senior engineer in Azure Identity, passport-azure-ad is to be replaced by the node-token-validation library. He does not indicate however, any release date.

I suggest that you stick with passport-azure-ad until the new library is ready.

See https://github.com/AzureAD/microsoft-authentication-library-for-js/pull/5034#issuecomment-1203450908.

To answer your question: You cannot validate access tokens with azure/msal-node.

like image 148
Yaakov Avatar answered Apr 30 '26 15:04

Yaakov