{"id":6155,"date":"2021-03-31T11:00:54","date_gmt":"2021-03-31T19:00:54","guid":{"rendered":"https:\/\/officedevblogs.wpengine.com\/?p=6155"},"modified":"2021-03-31T11:00:54","modified_gmt":"2021-03-31T19:00:54","slug":"accelerate-your-app-adoption-with-msal-for-node-js","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/accelerate-your-app-adoption-with-msal-for-node-js\/","title":{"rendered":"Accelerate your app adoption with\u00a0MSAL for Node.js\u00a0"},"content":{"rendered":"<p><span data-contrast=\"auto\">The release of a new <\/span><a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/develop\/quickstart-v2-nodejs-webapp-msal\"><span data-contrast=\"none\">Microsoft Authentication Library (MSAL) for Node <\/span><\/a><span data-contrast=\"auto\">expands the libraries you can use with the Microsoft identity platform to our developers using node.js.\u00a0<\/span><span data-contrast=\"auto\">With MSAL Node you can write applications to authenticate users using Microsoft work, school and personal accounts, and accounts on social identity providers like Facebook, Google, LinkedIn, and others with\u00a0our\u00a0<\/span><a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory-b2c\/code-samples#web-apps-and-apis\"><span data-contrast=\"none\">Azure AD B2C<\/span><\/a><span data-contrast=\"auto\"> product. It also enables your app to access data and intelligence in Microsoft 365 through Microsoft Graph. <\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">You can find the MSAL Node package<a href=\"https:\/\/www.npmjs.com\/package\/@azure\/msal-node\"> here<\/a>.\nLearn more about how to take advantage of the new MSAL Node library in your application:<\/span><\/p>\n<ul>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/develop\/quickstart-v2-nodejs-webapp-msal\"><span data-contrast=\"none\">Quickstart: Add Authentication to a Node web app with MSAL Node &#8211; Microsoft identity platform | Microsoft Docs<\/span><\/a><span data-contrast=\"auto\">\u00a0<\/span><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/develop\/tutorial-v2-nodejs-webapp-msal\"><span data-contrast=\"none\">Tutorial: Sign-in users in a Node.js &amp; Express web app &#8211; Microsoft identity platform | Microsoft Docs<\/span><\/a><\/li>\n<\/ul>\n<h3><b><span data-contrast=\"auto\">Migrate from ADAL Node to MSAL Node to keep your application modern and\u00a0secure<\/span><\/b><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/h3>\n<p><span data-contrast=\"auto\">MSAL Node replaces the existing ADAL Node library. Moving to the MSAL libraries ensures your application can use the latest features of our Azure products and stays up to date with the latest releases from the node.js community. For example, the new MSAL libraries work with the Microsoft identity platform\u2019s OpenID Connect-certified Azure AD v2.0 endpoint and the social identity solution from Azure AD B2C.\u00a0<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"none\">Starting June 30, <\/span><span data-contrast=\"none\">2022,<\/span><span data-contrast=\"none\"> we will end support for ADAL and Azure AD Graph and will no longer provide technical support or security updates. Apps using ADAL on existing OS versions will continue to work after this time but will not receive any technical support or security updates. For more information, you can review our blog <\/span><a href=\"https:\/\/techcommunity.microsoft.com\/t5\/azure-active-directory-identity\/update-your-applications-to-use-microsoft-authentication-library\/ba-p\/1257363\"><span data-contrast=\"none\">End of support timelines for ADAL and Azure AD Graph API<\/span><\/a><span data-contrast=\"none\">.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">Like all versions of ADAL, ADAL for Node.js is currently in maintenance mode. No new features are being added and ongoing development efforts are focused on improving MSAL for Node.js.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/p>\n<p><b><span data-contrast=\"auto\">We can help you migrate your\u00a0app<\/span><\/b><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><span data-contrast=\"none\">The Microsoft identity platform<\/span><span data-contrast=\"none\"> documentation contains <a href=\"https:\/\/github.com\/AzureAD\/microsoft-authentication-library-for-js\/blob\/dev\/lib\/msal-node\/docs\/migration.md\">this migration guide <\/a><\/span><span data-contrast=\"none\">to help you start migrating<\/span><span data-contrast=\"none\">\u00a0<\/span><span data-contrast=\"none\">your apps\u00a0<\/span><span data-contrast=\"none\">from ADAL\u00a0<\/span><span data-contrast=\"none\">Node to MSAL Node.<\/span><\/p>\n<p><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">-Microsoft identity platform team<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>With the new release of MSAL Node you can write applications to authenticate users and enable your app to access data and intelligence in Microsoft 365 through Microsoft Graph.<\/p>\n","protected":false},"author":69081,"featured_media":25159,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3,5],"tags":[22],"class_list":["post-6155","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-graph","category-microsoft-identity-platform","tag-azure-ad"],"acf":[],"blog_post_summary":"<p>With the new release of MSAL Node you can write applications to authenticate users and enable your app to access data and intelligence in Microsoft 365 through Microsoft Graph.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/6155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/users\/69081"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/comments?post=6155"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/6155\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media\/25159"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media?parent=6155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=6155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=6155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}