The pages the gateway serves

Everything a person has to be shown before they reach your application is served by the gateway itself: no library in your app, no page to write, no template to deploy. They are compiled into the binary, they carry your colours and your logo, and they speak twenty-two languages.

They are also all Cache-Control: no-store: a page that names a person must never sit in a shared cache.

The pages

Path What it is
/login the sign-in page: the credential form, one button per identity provider, the passkey button, and the links to sign up or recover a password when those are open
POST /logout ends this session and comes back to the sign-in page
GET /logout the sign-out an application's own button sends to: from a page of the site it ends the session at once, like the POST; from anywhere else it asks first, with a Sign out button
/totp the second-factor challenge, with trust this browser and the code-by-e-mail link when they are available
/totp-enroll forced enrolment, when a second factor is required and the account has none
/update-password the forced change: a temporary or expired password
/forgot-password, /reset-password recovery by e-mail, and the page the link lands on
/register, /confirm self-registration and address confirmation
/confirm-email the link confirming a new address changed from the profile
/select-tenant which tenant this session works in
/select-group which group, in exclusive-group mode
/account-pending the waiting room: an account that exists and has been granted nothing yet
/refused signed in, and turned away. It names the rule that refused and offers what this session can open
/verify-identity Confirm it is you: a fresh proof asked before something that adds a way into the account, or the second factor asked before an authority is joined to an existing account. See below
/profile/... the person's own pages: identity, password, second factor, passkeys, authorities, paired phones (Enterprise), sign-in history, active sessions, API tokens
/meerkat/notifications the person's notifications, from all their tenants. Enterprise: see Notifying your users

An application's own sign-out button points at GET /logout on the data plane. From a page served through the gateway it signs out at once, and the person lands on the sign-in page:

<a href="/logout">Sign out</a>

The unavailability page has no path of its own: it answers any path with 503 while maintenance is on, names the reason from a closed list, and gives an administrator a way through.

The console's sign-in page is the same machinery on the admin port, with one difference: it is always English and always dark. The console is Meerkat's own door and does not take the integrator's settings.

The profile

/profile is the person's own page, the same on the applications' side and on the console's. Two things on it reach beyond the page itself.

The way back to the applications. The profile offers one control to go back to work, the first of these that applies:

  1. Back, to the page the person came from, while it is still open to them in the tenant they are working in;
  2. in Portal mode, a button under the application's name, leading to the first module they may open;
  3. in Links mode, a one-line list of the catalogue, its containers as groups;
  4. in None mode, a list of the UI routes they may open.

A list of one is a plain button with that one's name, and a route on another host is offered at its full address. When nothing is open to them, an Applications button leads to the page that says no application is open to their account yet.

The time zone. Chosen once, it is used wherever the person reads a time: the gateway's pages, the console for an administrator, and the applications that ask for it.

An account that was on UTC only because nobody had chosen follows the browser since this choice exists; whoever wants UTC picks it again.

Confirm it is you

A session proves that somebody signed in, some time ago, in this browser. It does not prove that the person in front of it now is the one who did. So two acts on the profile, which add a way into the account that would outlive the session, ask for a fresh proof first, on /verify-identity:

The person picks the proof among those their account has:

A proof is good for ten minutes, for that act only, and is used once. An account with none of these cannot pair a phone: the page says so.

The same page asks for the second factor when a sign-in through an authority is being joined to an existing account, after the mailed code has proved the address.

Colours

Application > Built-in pages > Theme. Six source colours, a contrast level and a color match generate every colour of the pages, in light and in dark. See The theme.

Light and dark

The visitor's choice is a three-state button on the page - follow the system, light, dark - stored in the MEERKAT_SCHEME cookie for a year and on the account, so a browser that has never seen this person still gets their scheme after they sign in. To take the choice away, untick a scheme in the theme editor: the remaining one is imposed and the button disappears.

Layout and branding

Application > Built-in pages > Layout picks one of five arrangements: centered (the only one in the community edition), split, drawer, banner and bare. Branding carries the name, the logo, the tab icon and the background picture. See The built-in pages and Branding.

Languages

Twenty-two languages are built in, English being the reference. The pages offer a language when a route says it speaks it: which are offered is derived, never declared. To add one, declare it in a route's Locales section; to correct a sentence or add a language the binary does not carry, use Application > Built-in pages > Locale. See Languages.

For one request, the language is picked in this order:

  1. the MEERKAT_LANG cookie, if it names a language you offer;
  2. Accept-Language, matched on the language tag;
  3. English when a route speaks it, otherwise the first language offered.

Someone's own choice is written to their account and put back into the cookie when they sign in, so their language follows them to a new browser. Arabic and Hebrew are rendered right to left.

What you cannot change

Your own HTML. The pages are templates inside the binary; the seams are the theme, the layout, the branding and the language catalogues. There is no template-override setting and no file the gateway reads at startup. If you need a sign-in page that is entirely yours, the honest answer today is that Meerkat does not do that yet.