What happens when someone signs in
An application sends the person to Signari, Signari finds out who they are, and the application receives signed proof of it. Below is one sign-in from start to finish, then the parts you decide: what people are asked for, which second factors they can use, and what the pages look like.
One sign-in, step by step
A drawing of the three parties to a sign-in: your browser on the left, your application on the right, and Signari at the back between them. The browser reaches Signari through the front channel; the application talks to Signari server to server. The six steps listed below play in turn.
- 01
You click Sign in
The application sends your browser to Signari, with its client ID and the hash of a secret it keeps.
- 02
Signari checks the application
The client ID must be registered, and the return address must match a registered one exactly. Otherwise the browser goes nowhere.
- 03
Signari asks who you are
The organisation's sign-in flow runs: a password or passkey, a second factor if you have one, then a session.
- 04
You go back with a code
Your browser returns to the application with a one-time code. It works once, for 60 seconds.
- 05
The application redeems it
From its server, it sends the code with the secret whose hash it sent first. Only it holds that secret.
- 06
Signari answers with tokens
The application checks the ID token's signature against Signari's published keys, and you are signed in.
Three tokens, each with one job. They are signed, so an application can check one is genuine with Signari's published keys, without asking Signari.
ID token
Tells the application who signed in. The application checks its signature, its issuer, who it was issued to and when it expires, then treats the person as signed in.
Access token
Lets the application call an API for the person. The API checks the token, not the person's password. It lasts five minutes by default, so a stolen one is soon useless.
Refresh token
Gets a new access token without signing in again. Each use replaces it, and a used one cannot be used again. It lasts 30 days by default.
Single sign-on
Signari keeps a session of its own, 12 hours by default. When the person opens a second application, Signari finds the session and does not ask for the password again.
Consent
Before an application receives anything, Signari can ask the person to allow it. For an application your own organisation runs, you can skip that screen.
Request parametersSigning out
An application can end the sign-in at Signari, and Signari tells the other applications through back-channel or front-channel logout.
Signing outYou decide what people are asked for. An organisation's sign-in is a flow: a list of stages, each with the condition that runs it, kept in a file with its own tests.
Stages and conditions
A stage either proves something, such as a password or a passkey, or does something, such as showing a notice or starting a session. A stage with when: runs only when its condition holds, and one_of runs the first branch whose condition holds.
Tests in the same file
A flow file without tests does not load. Each test gives the facts about a person and the exact stages they should see. signari flow test runs them in CI with no database, and signari flow paths lists every journey the file allows.
Rules no file can change
A flow that could start a session without proving who the person is does not load. Signari checks that when the file is parsed, and again before it serves anything.
version: 1 flows: - name: sign-in on: authentication stages: - {stage: captcha, when: captcha_required} - one_of: - {stage: passkey, when: user_has_passkey} - {stage: password} - {stage: mfa, when: user_has_second_factor} - session tests: - name: passkey holder given: {user_has_passkey: true} expect: [passkey, session] - name: password and a second factor given: {user_has_second_factor: true} expect: [password, mfa, session]
| Journey | In the file | Where it starts |
|---|---|---|
| Signing in | on: authentication | /login |
| Signing up | on: enrolment | /signup |
| Recovering an account | on: recovery | /recover, then the emailed link |
| Deleting an account | on: unenrolment | /account/delete |
Without a file, Signari runs its built-in flows: a CAPTCHA if one is required, then a password, passkey, Kerberos ticket or another provider, then a second factor if the person has one, then a session. signari flow show prints them, to start from.
Second factors people set up themselves. Each person adds and removes their own from their account page, and the organisation's flow decides when one is asked for.
| Factor | How it works | Worth knowing |
|---|---|---|
| Passkey or security key | The device signs a challenge that is bound to the sign-in address. A passkey can also be the first factor, in place of a password. | The only factor that resists phishing. Set the sign-in domain once with signari instance webauthn before anyone can register one. |
| Authenticator app | A six-digit code that changes every 30 seconds, set up by scanning a QR code. | Ten recovery codes are issued with it, for when the phone is lost. |
| Email code | A six-digit code sent by email. | Weaker than an app or a passkey, because account recovery goes to the same mailbox. |
| SMS code | A code sent by text message, through Twilio, a webhook of yours or a verification service. | The weakest Signari offers, and recorded as an SMS code rather than a generic one. |
| Duo | Duo's Universal Prompt, set up for each organisation. | If Duo cannot be reached, the sign-in is refused by default. |
| A service of your own | A stage answered by a service you run, believed because it signs its answer. | For a check Signari does not have built in. |
Over LDAP and RADIUS, where there is no page to show, the person adds the code to their password, as in password;123456. A RADIUS server can also ask for it separately, with an Access-Challenge.
Sign in with an account people already have. Google, Microsoft, GitHub, Apple, GitLab and five others are presets, and any OpenID Connect, OAuth 2.0 or SAML provider can be added.
You decide what to believe
Whether the provider's email address counts as verified, whether its second factor counts as one, and which groups come with the person.
Sending people to their provider
An application can name the provider with idp_hint, or pass the person's email with login_hint. People can also type their address and press Continue with single sign-on.
Your company directory
Read people and groups from a directory with directory sync, or let another system create and remove them in Signari over SCIM.
Directory syncPages that carry each organisation's name. The sign-in, consent, second-factor, recovery and account pages wear the organisation's brand, in the person's language.
Brands
A product name, a logo, a support link and four colours, for the whole instance or for one organisation. Colours that fail the contrast check are refused.
BrandsYour own pages
Every page is an HTML file you can replace, with nothing to compile. A broken replacement is refused, and the built-in page is served instead.
ThemingLanguages
English and Arabic ship complete, with Arabic laid out right to left. Adding a language is one file of translations, and signari i18n status checks it.
Account recovery
The recovery page answers the same way whether or not the account exists. A reset then waits for a delay in which the real owner can cancel it, unless the person proves a second factor.
Sign-in flowsSigning up and invitations
People can be invited, or sign themselves up with an allowed email domain. Sign-up proves the email address by default.
Sign-upNo script needed
A sign-in with a password works with JavaScript turned off. The pages load no fonts, scripts or images from another site, except an optional CAPTCHA.
Security inventories