Documentation base URLs use placeholder https://{your-tenant}.sso.id. Log in to show your tenant or custom domain.
Log in for Your Tenant URL
Chapter 7 — Phishing-Resistant Zero-Trust MFA

Multi-Factor Authentication & FIDO2 Passkeys

Protect every login with phishing-resistant FIDO2 / WebAuthn Biometric Passkeys (FaceID, TouchID, Windows Hello, YubiKey), TOTP Authenticator Apps, Email OTP, and Twilio / AWS SNS / MessageBird SMS OTP — including Multi-Factor Step-Up (requireMultipleFactors) across Tenants, Applications, Organizations, and Organization Units.

Security Story: Stopping Adversary-in-the-Middle (AiTM) Phishing Cold

How CloudPulse Upgraded from SMS Codes to FIDO2 Passkeys & Multi-Factor Step-Up

During a red-team penetration test, security researchers attempted a real-time reverse-proxy phishing attack against CloudPulse's administrators. Because CloudPulse had enabled FIDO2 WebAuthn Passkeys (fido2PasskeysEnabled) and Multi-Factor Step-Up (requireMultipleFactors) in /multi-factor and /settings, the browser's hardware enclave cryptographically bound the WebAuthn signature to https://{your-tenant}.sso.id/auth — rendering the phishing proxy 100% useless.

1. The Four Native MFA Factors in SSO.ID v2

Manage tenant-wide MFA factors in /multi-factor (or inside /settings → Security & MFA), and override them per Application, Organization, or Organization Unit:

1. FIDO2 / WebAuthn Passkeys (fido2PasskeysEnabled)

Hardware-backed asymmetric cryptography using Apple FaceID/TouchID, Windows Hello, Android Biometrics, or USB/NFC YubiKeys. Can be enforced as a second factor or enabled as Passkey-as-Primary Passwordless Login (passkeyAsPrimary).

2. TOTP Authenticator App (RFC 6238)

Time-based One-Time Passwords compatible with Google Authenticator, Microsoft Authenticator, Authy, 1Password, and Bitwarden via QR code enrollment.

3. Email Verification OTP (/api/multifactor/factors/email)

Delivers time-bound numeric verification codes through your custom SMTP server using your branded MFA OTP HTML email template.

4. SMS OTP (Twilio, AWS SNS, MessageBird)

Delivers SMS verification codes worldwide via your configured SMS gateway in /settings with live test verification (POST /api/settings/tenant/sms/test).

Flow Diagram Adaptive MFA & FIDO2 Passkey Evaluation Flow
flowchart TD P["Primary Login Verified (Password / Social / Passkey)"] --> POL{"MFA Required by Policy?"} POL -->|"Disabled"| OK["Issue Session & Tokens"] POL -->|"Optional / Grace Period"| ENR{"User Enrolled or Remembered?"} POL -->|"Enforced"| CH{"Select Enabled Factor"} ENR -->|"Trusted Device"| OK ENR -->|"Prompt Enrollment"| CH CH -->|"FIDO2 Passkey"| W["WebAuthn navigator.credentials.get()"] CH -->|"TOTP / Email / SMS"| OTP["Verify 6-Digit OTP Code"] W --> OK OTP --> OK
After primary credential verification, Auth.SSO.Id evaluates tenant/app/org MFA policy, grace periods, and trusted device cookies before issuing a session.
https://cloudpulse.us.beta.sso.id/multi-factor Click to zoom
Multi-Factor Authentication console at /multi-factor showing Phone Message, Email, sso.id Mobile App, and Authenticator App toggles.
Multi-Factor Authentication console at /multi-factor showing Phone Message, Email, sso.id Mobile App, and Authenticator App toggles.
https://cloudpulse.us.beta.sso.id/settings Click to zoom
Tenant Settings — Multi-Factor & FIDO2 Passkeys policy controls (enforcement, grace period, remember device, and passkey options).
Tenant Settings — Multi-Factor & FIDO2 Passkeys policy controls (enforcement, grace period, remember device, and passkey options).

2. FIDO2 / WebAuthn Passkey Ceremonies (Auth.SSO.Id)

SSO.ID v2 implements the W3C WebAuthn Level 2 specification natively on https://{your-tenant}.sso.id/auth:

1

Enrollment Ceremony (/auth/oauth/passkey/register-begin → /register-complete)

Logged-in users can register multiple passkeys (e.g., MacBook TouchID + iPhone FaceID + Backup YubiKey). The server issues a cryptographic challenge and Relying Party ID (rpId), the browser invokes navigator.credentials.create(), and the signed public key is stored in SSO.ID.

2

Authentication Ceremony (/auth/oauth/passkey/auth-begin → /auth-complete)

During sign-in, SSO.ID issues a PublicKeyCredentialRequestOptions challenge, the browser invokes navigator.credentials.get(), and SSO.ID verifies the cryptographic signature and counter (preventing cloned authenticator attacks).

3. Multi-Factor Step-Up (requireMultipleFactors) & Tier Overrides

For regulated financial, healthcare, or defense workloads, a single second factor may not suffice. Enabling Require Multiple Factors (requireMultipleFactors) on a Tenant, Application, Organization, or Organization Unit requires the user to complete all active factors configured for that tier before a token is issued.

4. Configuring Twilio, AWS SNS & MessageBird SMS Gateways

In /settings → Security & MFA / SMS Provider, choose your SMS provider:

  • Twilio: Account SID, Auth Token, and From Phone Number / Messaging Service SID.
  • AWS SNS: AWS Access Key ID, Secret Access Key, Region, and Sender ID.
  • MessageBird: Live API Access Key and Originator.
  • Click Send Test SMS (POST /api/settings/tenant/sms/test) to verify delivery before enabling SMS MFA for end users.

5. MFA & Passkey API Reference & AI Prompt

Method Endpoint Description
GET https://{your-tenant}.sso.id/api/multifactor/factors Lists all MFA factors and their status in the tenant (PUT /api/multifactor/factors/{id} updates a factor).
PUT https://{your-tenant}.sso.id/api/multifactor/factors/email Enables or disables Email OTP MFA at the tenant level.
GET / PUT https://{your-tenant}.sso.id/api/applications/{id}/factors Gets or updates MFA factors overridden for a specific Application (also available on /api/organizations/{id}/factors and /api/organization-units/{id}/factors).
POST https://{your-tenant}.sso.id/auth/oauth/passkey/register-begin Starts FIDO2 WebAuthn passkey registration (POST /auth/oauth/passkey/register-complete finishes).
POST https://{your-tenant}.sso.id/auth/oauth/passkey/auth-begin Starts FIDO2 WebAuthn passkey sign-in (POST /auth/oauth/passkey/auth-complete finishes).

Multi-Factor Authentication (MFA) & FIDO2 Passkey API Specifications

Below is the complete parameter-level specification for every endpoint in this module. Tenant context is automatically resolved from the signed Bearer JWT token claims or the tenant domain URL (no custom tenant header is required).

GET https://{your-tenant}.sso.id/api/multifactor/factors
Bearer JWT

Lists all Multi-Factor Authentication (MFA) factor definitions and SMS/Email delivery gateway configurations in the tenant workspace.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
Response Fields & Schema
Field Type Description
factorId integer (int64) Unique numeric identifier of the MFA factor.
factorType string Factor category (TOTP, PASSKEY, EMAIL, SMS).
factorProvider string Provider name (e.g., WebAuthn/FIDO2, AuthenticatorApp, Twilio, Plivo, Vonage, SMTP).
factorMethod string Delivery/verification method.
deliveryFrom string Sender phone number, Messaging Service SID, or email address.
enable boolean Whether this factor is enabled at the Tier-1 Tenant level.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/multifactor/factors" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
[
  {
    "factorId": 1,
    "factorType": "TOTP",
    "factorProvider": "AuthenticatorApp",
    "factorMethod": "RFC6238",
    "enable": true
  },
  {
    "factorId": 2,
    "factorType": "PASSKEY",
    "factorProvider": "FIDO2/WebAuthn",
    "factorMethod": "Biometric/SecurityKey",
    "enable": true
  }
]
PUT https://{your-tenant}.sso.id/api/multifactor/factors/{id}
Bearer JWT

Updates a specific MFA factor's status or configures an SMS OTP gateway (Twilio, Plivo, Vonage) with API credentials and OTP templates.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
id Path integer (int64) Required Target Factor ID.
factorId Body integer (int64) Required Target Factor ID.
factorType Body string Required Factor type (SMS, EMAIL, TOTP, PASSKEY).
factorProvider Body string Required Gateway provider (Twilio, Plivo, Vonage, SMTP).
methodSID Body string Optional Gateway Account SID / API Key.
methodToken Body string Optional Gateway Auth Token / API Secret (encrypted at rest).
deliveryFrom Body string Optional Sender E.164 phone number or Alphanumeric Sender ID.
verificationTemplate Body string Optional OTP message template containing {{Code}} placeholder.
enable Body boolean Required Set to true to activate this factor.
Response Fields & Schema
Field Type Description
factorId integer (int64) Updated Factor ID.
factorType string Factor type.
enable boolean Active state.
Sample Request
curl -X PUT "https://{your-tenant}.sso.id/api/multifactor/factors/4" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "factorId": 4,
    "factorType": "SMS",
    "factorProvider": "Twilio",
    "methodSID": "AC9918273645abcdef0192837465",
    "methodToken": "twilio_auth_token_secret",
    "deliveryFrom": "+14155550100",
    "verificationTemplate": "Your CloudPulse verification code is {{Code}}. Valid for 5 minutes.",
    "enable": true
  }'
Expected Response 200 OK
{
  "factorId": 4,
  "factorType": "SMS",
  "factorProvider": "Twilio",
  "enable": true
}
POST https://{your-tenant}.sso.id/auth/oauth/passkey/register-begin
Authenticated Session

Initiates a W3C WebAuthn / FIDO2 Passkey Registration (Attestation) ceremony. Returns a cryptographic challenge and relying party options to pass into navigator.credentials.create({ publicKey }). Complete registration by posting the authenticator response to POST https://{your-tenant}.sso.id/auth/oauth/passkey/register-complete?deviceName={name}.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
deviceName Query (on complete) string Optional Friendly label for the enrolled passkey (e.g., MacBook Pro TouchID, YubiKey 5C NFC).
Response Fields & Schema
Field Type Description
rp object Relying Party metadata (id, name).
user object WebAuthn user handle (id, name, displayName).
challenge string (Base64URL) 32-byte cryptographic attestation challenge.
pubKeyCredParams array Supported COSE algorithms (-7 ES256, -257 RS256).
authenticatorSelection object Authenticator requirements (residentKey: preferred, userVerification: required).
Sample Request
curl -X POST "https://{your-tenant}.sso.id/auth/oauth/passkey/register-begin" \
  -H "Cookie: .AspNetCore.Session=..."
Expected Response 200 OK
{
  "rp": { "id": "sso.id", "name": "SSO.ID Identity Platform" },
  "user": {
    "id": "dXNyXzlmOGU3ZDZj",
    "name": "[email protected]",
    "displayName": "Liam Mercer"
  },
  "challenge": "q8z7x6c5v4b3n2m1l0k9j8h7g6f5d4s3a2p1o0i9u8y",
  "pubKeyCredParams": [
    { "type": "public-key", "alg": -7 },
    { "type": "public-key", "alg": -257 }
  ],
  "timeout": 60000,
  "attestation": "none"
}
POST https://{your-tenant}.sso.id/auth/oauth/passkey/auth-begin
Public / Auth Flow

Initiates a passwordless or step-up W3C WebAuthn / FIDO2 Passkey Sign-In (Assertion) ceremony. Pass the returned options into navigator.credentials.get({ publicKey }) and post the resulting signature to POST https://{your-tenant}.sso.id/auth/oauth/passkey/auth-complete.

Request Parameters
Parameter Type Required Description & Constraints
email Body string Optional Optional user email to scope allowCredentials; omit for discoverable Resident Key (conditional UI) passkey login.
Response Fields & Schema
Field Type Description
challenge string (Base64URL) Cryptographic assertion challenge.
rpId string Relying Party domain identifier.
allowCredentials array Registered credential descriptors for the user.
userVerification string User verification policy (required or preferred).
Sample Request
curl -X POST "https://{your-tenant}.sso.id/auth/oauth/passkey/auth-begin" \
  -H "Content-Type: application/json" \
  -d '{ "email": "[email protected]" }'
Expected Response 200 OK
{
  "challenge": "m1n2b3v4c5x6z7l8k9j0h1g2f3d4s5a6q7w8e9r0t1y",
  "rpId": "sso.id",
  "timeout": 60000,
  "userVerification": "required",
  "allowCredentials": [
    {
      "type": "public-key",
      "id": "cred_881920394857abcdef112233"
    }
  ]
}
AI Agent Prompt Implement FIDO2 Passkey Login & Step-Up MFA Verification
You are a security engineer. Implement **FIDO2 Passkey Registration and Step-Up MFA Enforcement** in our web application using **SSO.ID v2** (`https://{your-tenant}.sso.id/auth` and `https://{your-tenant}.sso.id/api`).

1. Build a browser WebAuthn client (`passkeyService.ts`) that calls:
   - `POST https://{your-tenant}.sso.id/auth/oauth/passkey/register-begin` -> `navigator.credentials.create()` -> `POST https://{your-tenant}.sso.id/auth/oauth/passkey/register-complete`
   - `POST https://{your-tenant}.sso.id/auth/oauth/passkey/auth-begin` -> `navigator.credentials.get()` -> `POST https://{your-tenant}.sso.id/auth/oauth/passkey/auth-complete`
2. Build a backend middleware `requireStepUpMfa` for sensitive operations (such as wire transfers or API key creation) that checks the JWT `amr` (Authentication Methods References) claim and redirects the user to `https://{your-tenant}.sso.id/auth/oauth/authorize?prompt=login` if hardware/MFA verification is not present.