Login integration sample

To test merge: login once, note profileId, clear the context-profile-id cookie (or use a private window), login again with the same email — you should get the same master profile.

How this sample works
  1. This page posts the form to a server-side servlet (/login/authenticate) — not to /cxs/context.json.
  2. The servlet checks the demo password setup.sh generated and stored as demoPassword, then calls Unomi with trusted Basic credentials (a tenant private key).
  3. The bundled exampleLogin rule merges on email mergeProfilesOnPropertyAction (trusted callers only, UNOMI-972).