Add browser-based login form example using Entra ID and MSAL.js#160
Merged
oto-macenauer-absa merged 4 commits intomasterfrom Apr 22, 2026
Merged
Add browser-based login form example using Entra ID and MSAL.js#160oto-macenauer-absa merged 4 commits intomasterfrom
oto-macenauer-absa merged 4 commits intomasterfrom
Conversation
lukasmatta
reviewed
Apr 22, 2026
dk1844
approved these changes
Apr 22, 2026
- @azure/msal-browser: ^2.38.3 → ^5.8.0 (v2.x EOL, security fixes in v3+) - express: ^4.18.2 → ^5.2.1 (CVE-2024-29041 open redirect, now stable v5) - esbuild: ^0.21.0 → ^0.28.0 (dev dep, latest stable) Verified clean via Trivy CVE scan (no MEDIUM/HIGH/CRITICAL findings). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… diagram Replaces unicode box-drawing / ASCII art flow with a proper sequenceDiagram block that renders correctly on GitHub. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… label Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
dk1844
approved these changes
Apr 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a self-contained browser UI example at
examples/ui/login-form/demonstrating the complete Entra ID → Login Service token-exchange flow.Changes
src/auth.js— MSAL authentication module (login, silent token acquisition, logout)src/login-service-client.js— HTTP client for the Login Service/token/generateendpointsrc/ui.js— all DOM manipulation helpers (status, loading state, token display, copy-to-clipboard)src/app.js— entry point wiring the modules together and registering event listenersindex.html— single-page UI; loadsconfig.jsthendist/bundle.js(defer)config.js— runtime configuration template (tenantId, clientId, scopes, loginServiceHost)server.js— minimal Express static server (required for MSAL redirect URIs)package.json— build + start scripts; esbuild bundlessrc/app.js→dist/bundle.js(IIFE);preparehook auto-builds onnpm installREADME.md— project structure, module responsibilities, prerequisites, config and running instructions.gitignore— excludesnode_modules/anddist/How to run
Release notes:
Closes #159