Sample V2 Code
In brief
The Node.js Express and web application entries in the sample code documentation were updated, including their linked sample resources.
What Entra admins need to know
Administrators using these examples should follow the updated references; no configuration change is required.
This editorial summary was generated by AI from the documentation changes. Verify important details in the full Microsoft Learn article.
Documentation change
The comparison below shows only the changed extract. Use the full-page view for complete context.
| Blazor | • Sign in users
• Call Microsoft Graph
• Call web API | MSAL.NET | Hybrid flow | | |
| Java Spring | • Sign in users
• Call Microsoft Graph
• Use App Roles for access control
• Use Groups for access control
• Protect a web API
• Deploy to Azure App Service | MSAL Java | Authorization code | |Tutorial |
| Java Servlets | • Sign in users
• Call Microsoft Graph
• Use App Roles for access control
• Use Security Groups for access control
• Deploy to Azure App Service | MSAL Java | Authorization code |Quickstart | |
| Node.js Express | • Sign in users
• Express web application built with MSAL Node and Microsoft identity platform
• Call Microsoft Graph
• Call Microsoft Graph via BFF proxy
• Use App Roles for access control
• Use Security Groups for access control
• Deploy to Azure App Service | MSAL Node | • Authorization code
• Backend-for-Frontend (BFF) proxy | Quickstart| Tutorial |
| Python Flask | • Sign in users
• Template to sign in Microsoft Entra ID, and optionally call a downstream API (Microsoft Graph) | MSAL Python | Authorization code | Quickstart| Tutorial |
| Python Django | • Sign in users | MSAL Python | Authorization code | | |
| Ruby | • Sign in users and call Microsoft Graph | OmniAuth OAuth2 | Authorization code | | |
[!div class="mx-tdCol2BreakAll"]
App type Code sample(s)
on GitHubAuth
librariesAuth flow Quickstart Tutorial Web application • Sign in users
• Call Microsoft Graph
• Deploy to Azure App Service
• Use App Roles for access control
• Use Security Groups for access control
• Express web application built with MSAL Node and Microsoft identity platformMSAL Node Authorization code Quickstart Tutorial
React
@@ -48,7 +48,7 @@ The following samples illustrate web applications that sign in users. Some sampl | Blazor | • [Sign in users](https://github.com/Azure-Samples/ms-identity-docs-code-dotnet/tree/main/spa-blazor-wasm) <br/>• [Call Microsoft Graph](https://github.com/Azure-Samples/ms-identity-blazor-server/tree/main/WebApp-graph-user/Call-MSGraph) <br/>• [Call web API](https://github.com/Azure-Samples/ms-identity-blazor-server/tree/main/WebApp-your-API/MyOrg) | [MSAL.NET](/entra/msal/dotnet) | Hybrid flow | | | | Java Spring | • [Sign in users](https://github.com/Azure-Samples/ms-identity-msal-java-samples/tree/main/4-spring-web-app/1-Authentication/sign-in) <br/>• [Call Microsoft Graph](https://github.com/Azure-Samples/ms-identity-msal-java-samples/tree/main/4-spring-web-app/2-Authorization-I/call-graph) <br/>• [Use App Roles for access control](https://github.com/Azure-Samples/ms-identity-msal-java-samples/tree/main/4-spring-web-app/3-Authorization-II/roles) <br/>• [Use Groups for access control](https://github.com/Azure-Samples/ms-identity-msal-java-samples/tree/main/4-spring-web-app/3-Authorization-II/groups) <br/>• [Protect a web API](https://github.com/Azure-Samples/ms-identity-msal-java-samples/tree/main/4-spring-web-app/3-Authorization-II/protect-web-api) <br/>• [Deploy to Azure App Service](https://github.com/Azure-Samples/ms-identity-msal-java-samples/tree/main/4-spring-web-app/4-Deployment/deploy-to-azure-app-service) | [MSAL Java](/java/api/com.microsoft.aad.msal4j) | Authorization code | |[Tutorial](/azure/developer/java/spring-framework/configure-spring-boot-starter-java-app-with-azure-active-directory) | | Java Servlets | • [Sign in users](https://github.com/Azure-Samples/ms-identity-msal-java-samples/tree/main/3-java-servlet-web-app/1-Authentication/sign-in) <br/>• [Call Microsoft Graph](https://github.com/Azure-Samples/ms-identity-msal-java-samples/tree/main/3-java-servlet-web-app/2-Authorization-I/call-graph) <br/>• [Use App Roles for access control](https://github.com/Azure-Samples/ms-identity-msal-java-samples/tree/main/3-java-servlet-web-app/3-Authorization-II/roles) <br/>• [Use Security Groups for access control](https://github.com/Azure-Samples/ms-identity-msal-java-samples/tree/main/3-java-servlet-web-app/3-Authorization-II/groups) <br/>• [Deploy to Azure App Service](https://github.com/Azure-Samples/ms-identity-msal-java-samples/tree/main/3-java-servlet-web-app/4-Deployment/deploy-to-azure-app-service) | [MSAL Java](/java/api/com.microsoft.aad.msal4j) | Authorization code |[Quickstart](quickstart-web-app-java-sign-in.md) | |-| Node.js Express | • [Sign in users](https://github.com/Azure-Samples/ms-identity-javascript-nodejs-tutorial/blob/main/1-Authentication/1-sign-in/README.md) <br/>• [Express web application built with MSAL Node and Microsoft identity platform](https://github.com/Azure-Samples/ms-identity-node/blob/main/README.md) <br/>• [Call Microsoft Graph](https://github.com/Azure-Samples/ms-identity-javascript-nodejs-tutorial/blob/main/2-Authorization/1-call-graph/README.md) <br/>• [Call Microsoft Graph via BFF proxy](https://github.com/Azure-Samples/ms-identity-node) <br/>• [Use App Roles for access control](https://github.com/Azure-Samples/ms-identity-javascript-nodejs-tutorial/blob/main/4-AccessControl/1-app-roles/README.md) <br/>• [Use Security Groups for access control](https://github.com/Azure-Samples/ms-identity-javascript-nodejs-tutorial/blob/main/4-AccessControl/2-security-groups/README.md) <br/>• [Deploy to Azure App Service](https://github.com/Azure-Samples/ms-identity-javascript-nodejs-tutorial/blob/main/3-Deployment/README.md) | [MSAL Node](/javascript/api/@azure/msal-node) | • Authorization code <br/>• Backend-for-Frontend (BFF) proxy | [Quickstart](quickstart-web-app-nodejs-sign-in.md)| [Tutorial](tutorial-v2-nodejs-webapp-msal.md) |+| Node.js Express | • [Sign in users](https://github.com/Azure-Samples/ms-identity-javascript-nodejs-tutorial/blob/main/1-Authentication/1-sign-in/README.md) <br/>• [Express web application built with MSAL Node and Microsoft identity platform](https://github.com/Azure-Samples/ms-identity-node/blob/main/README.md) <br/>• [Call Microsoft Graph](https://github.com/Azure-Samples/ms-identity-javascript-nodejs-tutorial/blob/main/2-Authorization/1-call-graph/README.md) <br/>• [Use App Roles for access control](https://github.com/Azure-Samples/ms-identity-javascript-nodejs-tutorial/blob/main/4-AccessControl/1-app-roles/README.md) <br/>• [Use Security Groups for access control](https://github.com/Azure-Samples/ms-identity-javascript-nodejs-tutorial/blob/main/4-AccessControl/2-security-groups/README.md) <br/>• [Deploy to Azure App Service](https://github.com/Azure-Samples/ms-identity-javascript-nodejs-tutorial/blob/main/3-Deployment/README.md) | [MSAL Node](/javascript/api/@azure/msal-node) | • Authorization code <br/>• Backend-for-Frontend (BFF) proxy | [Quickstart](quickstart-web-app-nodejs-sign-in.md)| [Tutorial](tutorial-v2-nodejs-webapp-msal.md) | | Python Flask | • [Sign in users](https://github.com/Azure-Samples/ms-identity-docs-code-python/tree/main/flask-web-app) <br/>• [Template to sign in Microsoft Entra ID, and optionally call a downstream API (Microsoft Graph)](https://github.com/Azure-Samples/ms-identity-python-webapp) | [MSAL Python](/entra/msal/python) | Authorization code | [Quickstart](quickstart-web-app-python-flask.md)| [Tutorial](tutorial-web-app-python-register-app.md) | | Python Django | • [Sign in users](https://github.com/Azure-Samples/ms-identity-docs-code-python/tree/main/django-web-app) | [MSAL Python](/entra/msal/python) | Authorization code | | | | Ruby | • [Sign in users and call Microsoft Graph](https://github.com/microsoftgraph/msgraph-training-rubyrailsapp) | OmniAuth OAuth2 | Authorization code | | |@@ -225,7 +225,7 @@ The following samples show how to build applications for the JavaScript language > [!div class="mx-tdCol2BreakAll"] > | App type | Code sample(s) <br/>on GitHub | Auth <br/>libraries | Auth flow | Quickstart | Tutorial | > | -------- | ----------------------------- | ------------------- | --------- | ---------- | -------- |-> | Web application | • [Sign in users](https://github.com/Azure-Samples/ms-identity-javascript-nodejs-tutorial/blob/main/1-Authentication/1-sign-in/README.md) <br/> • [Call Microsoft Graph](https://github.com/Azure-Samples/ms-identity-javascript-nodejs-tutorial/blob/main/2-Authorization/1-call-graph/README.md)<br/> • [Deploy to Azure App Service](https://github.com/Azure-Samples/ms-identity-javascript-nodejs-tutorial/blob/main/3-Deployment/README.md)<br/> • [Use App Roles for access control](https://github.com/Azure-Samples/ms-identity-javascript-nodejs-tutorial/blob/main/4-AccessControl/1-app-roles/README.md)<br/> • [Use Security Groups for access control](https://github.com/Azure-Samples/ms-identity-javascript-nodejs-tutorial/blob/main/4-AccessControl/2-security-groups/README.md) <br/> • [Web app that sign in users](https://github.com/Azure-Samples/ms-identity-node) | [MSAL Node](/javascript/api/@azure/msal-node) | Authorization code | [Quickstart](quickstart-web-app-nodejs-sign-in.md) | [Tutorial](tutorial-v2-nodejs-webapp-msal.md) |+> | Web application | • [Sign in users](https://github.com/Azure-Samples/ms-identity-javascript-nodejs-tutorial/blob/main/1-Authentication/1-sign-in/README.md) <br/> • [Call Microsoft Graph](https://github.com/Azure-Samples/ms-identity-javascript-nodejs-tutorial/blob/main/2-Authorization/1-call-graph/README.md)<br/> • [Deploy to Azure App Service](https://github.com/Azure-Samples/ms-identity-javascript-nodejs-tutorial/blob/main/3-Deployment/README.md)<br/> • [Use App Roles for access control](https://github.com/Azure-Samples/ms-identity-javascript-nodejs-tutorial/blob/main/4-AccessControl/1-app-roles/README.md)<br/> • [Use Security Groups for access control](https://github.com/Azure-Samples/ms-identity-javascript-nodejs-tutorial/blob/main/4-AccessControl/2-security-groups/README.md) <br/> • [Express web application built with MSAL Node and Microsoft identity platform](https://github.com/Azure-Samples/ms-identity-node) | [MSAL Node](/javascript/api/@azure/msal-node) | Authorization code | [Quickstart](quickstart-web-app-nodejs-sign-in.md) | [Tutorial](tutorial-v2-nodejs-webapp-msal.md) | #### React 