You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+43Lines changed: 43 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,6 +107,49 @@ The recommended, zero-import workaround is to leverage your Windows host's trust
107
107
```
108
108
Docker Compose will automatically detect this variable and mount your local Windows Maven cache into the container's `/root/.m2` path, bypassing the certificate handshake issues completely!
109
109
110
+
### Authentication (FAM/Cognito) — local testing
111
+
112
+
The SPA has two auth modes, selected at runtime by `public/amplify-config.js` (loaded before the
113
+
bundle). The repo default is **mock**; deployed environments mount a per-env ConfigMap over it. See
114
+
`src/context/auth/` (the `AuthProvider` seam) and `src/config/auth/amplify-initializer.ts`.
115
+
116
+
**Mock mode (default — no Cognito).**`npm run dev` with the backend running (security off by
117
+
default) signs you in automatically. Use the **"Mock user"** dropdown in the header to switch
118
+
`ILCR_ADMIN` ↔ `ILCR_SUBMITTER` — it switches both the nav/route-guards **and** the backend mock
119
+
principal (via the `X-Mock-Groups` header), so it exercises role gating end to end. This is the
120
+
fastest path for manual testing.
121
+
122
+
**Real FAM/Cognito login (Hosted UI).**
123
+
124
+
1. Frontend — copy the example config over the default (do **not** commit it; the repo default must
0 commit comments