如何解析从 node.js 中的 office 365 rest api 收到的访问令牌?
how to parse access token recived from office 365 rest api in node.js?
我必须解析从 office 365 rest api 收到的访问令牌。
就像这个 [http://jwt.calebb.net/] 在线工具一样。
我在 C# 中获得了一段平静的代码,但我想在 node.js.
中完成它
使用passport-azure-oauth module. Try this sample: https://github.com/OfficeDev/O365-Node-Express-Ejs-Sample-App,它使用这个模块。
更好的是,你应该使用https://github.com/AzureAD/azure-activedirectory-library-for-nodejs。
我必须解析从 office 365 rest api 收到的访问令牌。 就像这个 [http://jwt.calebb.net/] 在线工具一样。 我在 C# 中获得了一段平静的代码,但我想在 node.js.
中完成它使用passport-azure-oauth module. Try this sample: https://github.com/OfficeDev/O365-Node-Express-Ejs-Sample-App,它使用这个模块。
更好的是,你应该使用https://github.com/AzureAD/azure-activedirectory-library-for-nodejs。