Skip to content
Trustaige Docs

Customer credentials

Sign your customers up and in without passwords. A Sign up button opens their account with a passkey, and each sign-in is standard OpenID Connect.

View as Markdown

Get started

Your customers get an account with a passkey, so you build no passwords and no reset flow. Trustaige handles sign-up, sign-in, recovery and revocation, and your customers’ names and addresses stay in your database.

AIGE Labs is a working store built on this guide. Sign up there to see each step.

What you’re building

Your app gets two buttons. Log in sends a standard OpenID Connect sign-in request to your organization’s issuer. Sign up sends the same request with prompt=create. Trustaige asks the person for a passkey, creating one if they have none, opens their account with you, and returns them to your app with a sub, which is your identifier for that customer. You save your own record under that sub, and each later sign-in returns the same sub.

You keep whatever your sign-up form collects, and you send your customers your own emails. If you want to choose who gets an account, you can instead offer an account by link: you ask Trustaige for a subject and a claim link, and email the link yourself.

If your app keeps other ways in beside Trustaige, offer Trustaige beside them: countersign what matters, guard the first link, and let customers sign in only with Trustaige.

What it stops

To take over an account through its sign-in, an attacker needs four things: a target, a secret to steal, a way to use it on the real site, and a way past the second factor. Sign-in with passwords, codes or push approvals gives them all four. Sign-in with a passkey gives them none, once the account has no weaker way in beside it.

Attack stepWith a password, code or pushWith a passkey
Find a targetThe sign-in page confirms which emails have accounts, so attackers can build a list.The person types no username or email. The passkey identifies them, so the page doesn’t reveal who is a customer.
Steal the secretPasswords leaked from other sites, phished, or guessed across many accounts open accounts here.There is no password. Trustaige keeps only public keys, and your database holds no credentials.
Use it on the real siteA look-alike site passes the password and one-time code to the real one as they’re typed.A passkey works only on the site it was made for, and has no password or code behind it.
Get past the second factorPush prompts repeat until someone taps Approve to stop them.The person unlocks their own device with their face, fingerprint or PIN, in a step they started. Nothing is pushed to them.

The whole trust model, written for whoever reviews Trustaige before your app relies on it, is in How Trustaige keeps a sign-in safe.

The whole integration

These are the calls a store makes to Trustaige for the Sign up button. Two of them are code you write. Your OpenID Connect library makes the others.

#StepCallWho does it
1Discover your issuerGET /o/<your-org-id>/.well-known/openid-configurationyour OIDC library
2Send the person to sign up (prompt=create) or sign inGET /oauth2/authorizeyour OIDC library
3Exchange the code for an ID tokenPOST /oauth2/tokenyour OIDC library
4Fetch your signing keysGET /o/<your-org-id>/jwks.jsonyour OIDC library
5Send the person to sign outGET /oauth2/logoutyour OIDC library
6Get a client tokenPOST /oauth2/tokenyour code
7Erase a customer who leavesDELETE /o/<your-org-id>/api/credentials/subjects/{subject}your code

If your sign-up form sends email before the passkey step, add HumanProof to it: a script tag loads GET /humanproof.js, and your server checks the token with POST /humanproof/verify. Offering accounts by link adds HumanProof and POST /o/<your-org-id>/api/credentials/offers.

All calls go to the hub, https://id.trustaige.com. Your organization’s issuer is https://id.trustaige.com/o/<your-org-id>, shown under CIAM → Overview in the hub. Your organization signs its own tokens with its own keys.

How it fits together

Signing up:

  1. Person to Your app: fills in your form, clicks Sign up
  2. Your app to Trustaige: redirect: /oauth2/authorize, prompt=create
  3. Person and Trustaige: creates or uses a passkey
  4. Trustaige to Your app: code → ID token (new sub)
  5. Your app to Person: saves the record, signed in

Signing in afterwards:

  1. Person to Your app: clicks Log in
  2. Your app to Trustaige: redirect: /oauth2/authorize
  3. Person and Trustaige: passkey
  4. Trustaige to Your app: code → ID token (sub)
  5. Your app to Person: signed in

Who keeps what

You keepTrustaige keeps
Your customer’s name, email and what your forms collectThe person’s identity and passkeys, which belong to them
Their orders, preferences and historyThat your organization gave them an account, with its status and dates
The sub, as the key to all of itAny claim values you set, signed into the credential
The emails you send them

You don’t see the person’s recovery contacts, their other organizations, or credentials others gave them. They don’t see your records.

The guide

  1. Set up in the hub: prove your domain, design a credential, connect your app.
  2. Sign up with a button: your Sign up button adds prompt=create, and Trustaige opens the account.
  3. Beside other sign-in methods, when your app keeps them: countersign what matters, guard the first link, let customers sign in only with Trustaige.
  4. Offer an account by link, when you choose who gets one: HumanProof, a client token, the offer, the claim link.
  5. Sign people in and out: the OpenID Connect flow, the ID token, refusals.
  6. Countersign risky actions: transfers, new recipients and contact changes confirmed on the customer’s own device.
  7. After sign-up: renewal, suspension, reading what you issued, helping a customer, and erasing one who leaves.
  8. Before you go live: the checklist.