A second factor for any backend

Ask for a PIN or a passkey before a sensitive action. Your backend calls AuthGate, the user answers, and you get a short-lived token signed with AWS KMS that you verify yourself.

# your backend, before "change email"
POST /api/challenges
x-internal-access-key: ag_…
{"subjectId":"u_42","purpose":"change-email","factor":"pin"}

# the user types the PIN; you relay it
POST /api/challenges/{id}/verify
{"pin":"482913"}

# → a token you check against the JWKS
{"token":"eyJhbGciOiJFUzI1NiIs…","factor":"pin"}

How a step-up works

Three calls. The browser only ever talks to your backend.

1

Open a challenge

Your backend names the user, the action it is about to allow, and the factor. For a passkey, AuthGate returns the WebAuthn options.

2

The user answers

Your page collects the PIN or runs the passkey ceremony, and your backend passes the answer on.

3

Check the token

Verify the signature against the public keys, then aud, exp and purpose. A token for one action never unlocks another.

What you don't have to build

The parts of 2FA that are easy to get wrong.

PINs

Hashed with argon2id, a length policy, trivial PINs refused, lockout after repeated failures.

Passkeys

WebAuthn options and verification, checked against the domain and origins you registered.

Signed tokens

ES256, signed in AWS KMS, 5 minutes by default. Verify offline with the JWKS.

Keys and limits

Rotate a client key with a 24-hour grace, end it early, and a rate limit per client.

Self-service

Sign up, confirm your email, add a second factor, and create clients on the Portal.

Serverless

Go on AWS Lambda behind CloudFront, DynamoDB, KMS. No servers to run.

Try it in five minutes

Register a demo account, set a PIN, and watch every call the demo makes.