Microsoft Identity Platform community call – March 2023
Call summary
This month’s in-depth topic: Staying Up to Date with Authentication for JavaScript Applications
Microsoft is continually improving the Microsoft Authentication Libraries (MSAL) to benefit Microsoft web properties and your custom JavaScript applications. By staying up to date with the latest MSAL versions, your web application will receive the latest innovations on security, resiliency, and usability as they are released. If your application is still on ADAL, migrating to MSAL will enable pro-active token refreshing, extended outage resiliency, and improved OIDC-compliant flows moving from implicit flow to auth code token. Join this session to learn more about how your JavaScript application can leverage the latest features. Microsoft Presenters: Emily Lauber – Product Manager and Doğan Erişen - Software Engineer.
Topic/Demo Summaries
Staying Up to Date with Authentication for JavaScript Applications – take advantage of continuous updates to the Microsoft Authentication Libraries (MSAL) features addressing security, resiliency, and usability as they are released. Presentation covers - what is MSAL.js?, what can you use it for?, what changed since ADAL?, why should you stay up-to-date on the latest MSAL version? Latest on app configuration authority differences, redirect URI differences, API permissions differences, and supported account types.
Migrating your solutions from ADAL.js to MSAL – will enable pro-active token refreshing, extended outage resiliency, and improved OIDC-compliant flows moving from implicit flow to auth code token. Coding demo stepping through sample migration of a SPA from ADAL to MSAL. Observe ADAL vs MSAL API surface (method name/signature changes, promises vs callbacks, accounts vs users, and error handling) and review token caching & renewal behavior.
This call was hosted by Nandeesh Swami (Microsoft) | @Nandeesh_Swami and https://www.linkedin.com/in/nandeeshswami/ on March 16, 2023. Questions addressed live and in chat throughout the call.
Agenda items
00:00 – Intro - Nandeesh Swami (Microsoft) | @Nandeesh_Swami
01:04 – Topic – Staying up to date with authentication for JavaScript applications – Emily Lauber (Microsoft)
10:26 – Demo – Migrating your solutions from ADAL.js to MSAL - Doğan Erişen - (Microsoft)
35:24 – Q & A related to demo
51:49 – Closing
Referenced in the call
- Release notes: microsoft-authentication-library-for-js | https://github.com/AzureAD/microsoft-authentication-library-for-js/releases
- Repo - microsoft-authentication-library-for-js | https://github.com/AzureAD/microsoft-authentication-library-for-js
- Documentation - How to migrate a JavaScript app from ADAL.js to MSAL.js | https://learn.microsoft.com/azure/active-directory/develop/msal-compare-msal-js-and-adal-js
- Documentation - Migrate a JavaScript single-page app from implicit grant to auth code flow | https://learn.microsoft.com/azure/active-directory/develop/migrate-spa-implicit-to-auth-code
- Video - Deep dive on using MSAL.js to integrate Angular single-page applications with Azure AD – August 2022 | https://www.youtube.com/watch?v=EJey9KP1dZA
- Repo - Using MSAL in iframed apps | https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/iframe-usage.md
- Repo - Resources and Scopes v2 | https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/resources-and-scopes.md
- Documentation – How to migrate a Node.js app from ADAL to MSAL | https://learn.microsoft.com/azure/active-directory/develop/msal-node-migration
- Sample - MSAL Node Standalone Sample: Refresh Token Grant | https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/refresh-token
- Documentation - Application types for the Microsoft identity platform | https://learn.microsoft.com/azure/active-directory/develop/v2-app-types
- Samples – Microsoft identity platform code samples | https://learn.microsoft.com/azure/active-directory/develop/sample-v2-code
- SDK - Microsoft Graph JavaScript Client Library | https://github.com/microsoftgraph/msgraph-sdk-javascript
Actions
- Let us know how we’re doing and suggest topics for future calls, please complete this survey https://aka.ms/IDDevCommunityCallSurvey
- Opt into PnP Recognition Program | https://aka.ms/m365pnp-recognition
- Register for the Microsoft 365 Developer Program and get a free developer tenant
- Get started with free training modules covering Microsoft 365 platform capabilities including Learning Path - Implement Microsoft identity – Associate
- Mark your calendar for next call on April 20th at 9:00am PT. Download the recurrent invite for this call | https://aka.ms/IDDevCommunityCalendar
Resources in General
- Documentation - What is the Microsoft identity platform?
- Documentation - Microsoft identity platform documentation
- Developer – Microsoft Identity Platform
- Microsoft 365 Unified Sample gallery - https://aka.ms/m365/samples
Stay connected
- Twitter https://twitter.com/microsoft365dev and @azuread
- LinkedIn Nandeesh Swami | https://www.linkedin.com/in/nandeesh-s-301a7514/
- See the full blog post for this call in the Microsoft 365 platform community blog - https://aka.ms/community/blog
- Microsoft 365 Unified Sample gallery - https://aka.ms/community/samples
- Microsoft 365 Platform Community in YouTube - https://aka.ms/community/videos
- Microsoft 365 Platform Community - https://aka.ms/community/home