MSAL Auth: Login Path
The loginPath property specifies the endpoint where the Single Page Application (SPA) submits a Microsoft Entra ID token to establish a gateway session.
Configuration Options
loginPath: /auth/ms/login
Usage
When the msal-auth handler receives a request (typically a POST) matching this exact path:
- It expects a valid Microsoft Entra ID token in the
Authorization: Bearerheader. - It validates the token using the
security-msal.ymlconfiguration. - If valid, it generates a fresh CSRF token and responds with the
accessTokenandcsrfcookies usingSet-Cookieheaders.
This path must also be mapped in handler.yml to trigger the msal-auth handler.
paths:
- path: /auth/ms/login
method: POST
exec:
- msal-auth