Commit graph

9 commits

Author SHA1 Message Date
Vadym Samoilenko
ed638ff8cd Fix MSAL interaction_in_progress and redirect URI mismatch
- Refactor auth init: initialize MSAL before React mounts so MsalProvider
  handles handleRedirectPromise exactly once (no double-calls, no stale locks)
- Simplify AuthGuard to pure AuthenticatedTemplate/UnauthenticatedTemplate
- Remove trailing slash from redirect URI to match Azure AD registration

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16 11:46:41 +00:00
Vadym Samoilenko
03fd4be165 Fix MSAL interaction_in_progress on page reload
Clear stale interaction.status key from localStorage before MSAL
initializes. A failed or interrupted loginRedirect leaves this lock
set, blocking all subsequent auth calls with interaction_in_progress.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16 11:43:00 +00:00
Vadym Samoilenko
f1061f56b1 Fix MSAL crash on localStorage key iteration
Purge stale msal.* keys from sessionStorage before MSAL initializes.
When cache location was switched from sessionStorage to localStorage,
leftover MSAL entries caused Storage.key(i) to return null during
createKeyMaps iteration, crashing isCredentialKey with TypeError.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16 11:41:25 +00:00
Vadym Samoilenko
9958c903c5 Fix MSAL SSO redirect and add deploy script
- Switch MSAL cache to localStorage + cookie fallback to fix AADSTS90014 (PKCE state lost on redirect)
- Fix base path and redirect URI to use correct case: lusa-Back-Planner
- Add deploy.sh for server-side build and deploy

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16 11:38:56 +00:00
Manish Tanwar
7c19fb5c37 add msal sso-page-error 2026-03-16 16:28:47 +05:30
Manish Tanwar
57c4ea9363 add msal sso-page and env-1 2026-03-16 12:52:32 +05:30
Manish Tanwar
d375ac7b31 add msal sso-page and env 2026-03-13 08:32:11 +05:30
Vadym Samoilenko
d2424d288a Add Azure AD SSO (MSAL) and deployment config
- MSAL SPA redirect flow with Azure AD authentication
- AuthGuard wrapper with auto-redirect for unauthenticated users
- Navbar shows logged-in user name and sign out button
- Vite base path set to /lusa-back-planner/ for subdirectory hosting
- Apache config for SPA fallback routing
- Environment variables for Azure AD tenant/client/redirect

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 18:41:56 +00:00
DJP
207a922ca7 Initial commit: LUSA Back Planner 2026-03-06 13:25:24 -05:00