The popup login flow was broken because the Flask 302 redirect from / to /reporting/index caused MSAL in the popup to consume the auth code hash before the parent window could detect it, leaving the parent stuck on "Authenticating..." while the popup rendered the full app. - Switch signIn() from loginPopup() to loginRedirect() - Add handleRedirectPromise() at start of initAuth() to process the auth code on page load after returning from Microsoft - Change root route from 302 redirect to direct template render so the #code=... hash fragment is preserved for MSAL - Switch signOut() from logoutPopup() to clearCache() Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| css | ||
| js | ||