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 1 — Identity Onboarding & End-User Portal

Account Lifecycle & App Launcher Experience

Before an enterprise admin configures their first application — or an employee launches their daily SaaS tools — every identity journey starts with the SSO.ID v2 Account & Workspace Portal. Discover how registration modes, the Google-style Multi-Account Switcher, the Okta-style App Launcher, Passkey enrollment, and GDPR self-service privacy work end to end.

Chapter 1 Story: Two Faces of the Same Portal

Why SSO.ID v2 Adapts Automatically to Admins vs. End Users

At CloudPulse, two people sign into https://{your-tenant}.sso.id on Monday morning:

  • Maya (Platform Security Architect): Signs in and lands on the Admin Console ( /overview), where she switches between the CloudPulse Production (US) and CloudPulse Europe (EU) tenants, inspects real-time login telemetry, and manages applications.
  • Liam (Customer Support Specialist): Signs in and lands on the End-User App Launcher — a clean, distraction-free workspace showing chiclets for every application he is authorized to use (CRM, Billing Desk, Analytics), complete with custom sections, one-click SSO launch, self-service Passkey registration, and active device session controls.
Key Architectural Insight: When a user owns or is a member of a Tenant (or holds administrative menu permissions via /api/tenants/{tenantId}/roles/user-menus), they can toggle seamlessly between the Admin Console and the User Portal using the top-bar mode switcher.

1. Four Ways Identities Enter SSO.ID v2

Depending on your tenant security policy ( /settings → General & Registration), users can onboard through four distinct flows:

A. Public Self-Service Registration (allowSelfRegistration)

Ideal for B2C and PLG SaaS apps. Users sign up with First Name, Last Name, Email, and Password (validated live against your Tenant Password Policy), then verify their email via a signed token or OTP (enableEmailVerification).

B. Admin & Organization Invitation Flow

Ideal for B2B and zero-trust teams. Self-signup is disabled; admins invite users via /user-management (POST /api/users/invite) or /tenant-members. Invitations can be resent anytime via POST /api/users/{userId}/resend-invite.

C. Just-in-Time (JIT) Social & Enterprise Federation

When a user authenticates via Google, GitHub, Microsoft Entra ID, or Okta SAML/OIDC and autoProvisionUsers is enabled on the Connection, SSO.ID automatically provisions their account and maps their external groups to SSO.ID Roles.

D. Automated SCIM 2.0 HRIS/IdP Provisioning

Enterprise workforce directories push users and groups into SSO.ID ahead of time via POST /api/scim/v2/Users so accounts and permissions are ready before the employee's first login.

2. The End-User App Launcher Portal

When end users sign into https://{your-tenant}.sso.id (or your custom domain), the portal calls GET /api/users/current/applications and renders an interactive Application Chiclet Grid:

Flow Diagram Region-Routed Universal Login & App Launcher Flow
flowchart LR L["Universal Login (/login)"] --> D["Email / Home Region Lookup (US or EU)"] D --> A["Tenant Auth Portal (/auth/Account/Login)"] A --> M{"MFA / Passkey Required?"} M -->|"Yes"| C["Verify Passkey / TOTP / OTP"] M -->|"No"| P["App Launcher (/app)"] C --> P P --> S["One-Click Launch to OIDC / SAML App"]
Users are automatically routed to their US or EU tenant portal, authenticated with adaptive MFA, and presented with their assigned apps.
1

One-Click SSO Launch & Custom Sections

Users can click any assigned Application tile to immediately initiate an OIDC/OAuth2/SAML login into that app without re-entering credentials. Users can also organize their apps into custom folders/sections (persisted per user/tenant), search apps in real time, and pin frequently used apps.

2

Request Access to New Applications & In-App Notifications

If an employee needs access to an application they aren't yet assigned to, they can submit an App Access Request directly from the portal, triggering a real-time notification in the top bell menu (/api/notifications) for tenant administrators.

3

9-Language Localization (with RTL), Dark Mode & Voice Commands

The top navigation bar supports instant switching between 9 languages (English, Arabic with automatic Right-to-Left dir="rtl" layout, Chinese, Dutch, French, German, Italian, Spanish, and Turkish), persistent Dark/Light themes, and a hands-free Voice Command Assistant (Web Speech API) so admins can say "Go to Applications" or "Open Audit Logs".

https://cloudpulse.us.beta.sso.id/user-profile Click to zoom
Self-Service User Profile, Password Management, Language Preferences & GDPR Privacy Controls.
Self-Service User Profile, Password Management, Language Preferences & GDPR Privacy Controls.

3. Multi-Account Switcher & Multi-Tenant Workspace Selector

Google-Style Multi-Account Switcher (sso_accounts)

Click your avatar in the top-right corner to view all signed-in accounts stored in the browser vault, click Add another account to sign into a secondary identity, and switch between accounts with a single click — including automatic JWT expiry validation and token refresh.

Multi-Tenant Workspace Switcher

Developers and consultants often manage Dev, Staging, Production, and multiple client tenants. Use the top-left Tenant Switcher (powered by GET /api/users/tenants and POST /api/tenant-management) to switch workspaces or create a new US/EU tenant in seconds.

4. Self-Service Profile, FIDO2 Passkeys & Active Device Sessions

Navigating to /user-profile empowers every user to manage their own security posture without filing IT tickets:

  • Profile & Avatar Upload: Update personal details (PUT /api/users/self) and upload or crop a profile avatar (POST /api/users/{userId}/avatar).
  • Password Change & MFA Enrollment: Rotate passwords (POST /api/users/self/change-password) and enroll TOTP Authenticator Apps or FIDO2 / WebAuthn Biometric Passkeys (FaceID, TouchID, Windows Hello, YubiKey).
  • Active Device Sessions & Remote Sign-Out: View every active browser/device session with IP address, user-agent, and last-active timestamp (GET /api/users/{userId}/sessions). Users can revoke an unrecognized device immediately (DELETE /api/users/{userId}/sessions/{sessionId}) or click Revoke All Other Sessions (DELETE /api/users/{userId}/sessions/revoke-all).

5. Self-Service GDPR Data Portability & Right to Erasure

When enabled in /settings → Compliance & Privacy, users have built-in regulatory privacy controls on their profile page:

  • Export My Personal Data (GDPR Art. 15 & 20): Calls GET /api/compliance/export-my-data to download a portable JSON package containing their profile attributes, consent history, organization memberships, and login activity.
  • Consent History & Management: View and update privacy policy / terms consent records via GET /api/compliance/consent-status and POST /api/compliance/record-consent.
  • Delete My Account (GDPR Art. 17): Calls DELETE /api/compliance/delete-my-account (after checking tenant ownership via GET /api/users/{userId}/tenant-ownership).

6. Account & Self-Service API Endpoints

Method Endpoint Description
GET https://{your-tenant}.sso.id/api/users/self Returns the authenticated user's profile, roles, MFA status, and preferences.
PUT https://{your-tenant}.sso.id/api/users/self Updates the authenticated user's profile fields (firstName, lastName, phoneNumber).
POST https://{your-tenant}.sso.id/api/users/self/change-password Changes the user's password after verifying currentPassword and tenant password rules.
GET https://{your-tenant}.sso.id/api/users/current/applications Returns all SSO Applications assigned to the current user (directly, via Roles, or via Groups/Orgs).
GET https://{your-tenant}.sso.id/api/users/{userId}/sessions Lists active sessions (DELETE /api/users/{userId}/sessions/{sessionId} revokes one; DELETE .../revoke-all revokes all).
GET https://{your-tenant}.sso.id/api/compliance/export-my-data Downloads GDPR-compliant personal data archive for the logged-in user.

Account, App Launcher & Self-Service Privacy 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/users/self
Bearer JWT

Retrieves the authenticated user's profile attributes, active language preference, MFA status, assigned application roles, and group memberships.

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
userId string (UUID) Unique identifier of the authenticated user.
emailAddress string Primary verified email address.
firstName string User's given/first name.
lastName string User's family/last name.
displayName string Formatted full display name.
phoneNumber string Primary phone number in E.164 format.
mobileNumber string Mobile phone number used for SMS OTP delivery.
address string Street mailing address.
cityName string City or locality name.
countryName string Country name or ISO code.
zipCode string Postal or ZIP code.
gender string Optional gender attribute.
language string Preferred UI locale code (e.g., en-US, ar-SA, fr-FR, de-DE).
profileImage string URL or base64 data URI of the user's profile avatar.
isMultifactor boolean Indicates whether multi-factor authentication is enrolled and active for this user.
status integer Account status (1 = Active, 0 = Suspended, 2 = Invited).
userRole array Array of application roles assigned to the user.
usersGroups array Array of directory groups the user belongs to.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/users/self" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
{
  "userId": "usr_9f8e7d6c-5b4a-3c2d-1e0f-9a8b7c6d5e4f",
  "emailAddress": "[email protected]",
  "firstName": "Liam",
  "lastName": "Mercer",
  "displayName": "Liam Mercer",
  "phoneNumber": "+14155550192",
  "mobileNumber": "+14155550192",
  "countryName": "United States",
  "cityName": "San Francisco",
  "language": "en-US",
  "isMultifactor": true,
  "status": 1,
  "userRole": [
    {
      "roleId": "rol_3310a",
      "roleName": "Support Specialist",
      "applicationId": "app_7712b",
      "applicationName": "CloudPulse CRM"
    }
  ]
}
PUT https://{your-tenant}.sso.id/api/users/{id}?isUserUpdate=true
Bearer JWT

Updates the authenticated user's self-service profile details, contact information, and preferred UI language.

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 string (UUID) Required The authenticated user's userId.
isUserUpdate Query boolean Required Set to true when performing a self-service user profile update.
firstName Body string Required Updated first name (1-100 characters).
lastName Body string Required Updated last name (1-100 characters).
emailAddress Body string Required User's email address.
phoneNumber Body string Optional Primary telephone number.
mobileNumber Body string Optional Mobile number in E.164 format for SMS MFA.
address Body string Optional Mailing street address.
cityName Body string Optional City name.
countryName Body string Optional Country name.
zipCode Body string Optional Postal or ZIP code.
gender Body string Optional Optional gender indicator.
language Body string Optional Preferred UI language code (e.g., en-US, fr-FR, ar-SA).
Response Fields & Schema
Field Type Description
status boolean Indicates whether the profile update succeeded.
message string Human-readable status message.
data UserDTO The updated user profile record.
Sample Request
curl -X PUT "https://{your-tenant}.sso.id/api/users/usr_9f8e7d6c-5b4a-3c2d-1e0f-9a8b7c6d5e4f?isUserUpdate=true" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "firstName": "Liam",
    "lastName": "Mercer",
    "emailAddress": "[email protected]",
    "phoneNumber": "+14155550199",
    "cityName": "Austin",
    "countryName": "United States",
    "language": "en-US"
  }'
Expected Response 200 OK
{
  "status": true,
  "message": "User profile updated successfully.",
  "data": {
    "userId": "usr_9f8e7d6c-5b4a-3c2d-1e0f-9a8b7c6d5e4f",
    "firstName": "Liam",
    "lastName": "Mercer",
    "cityName": "Austin",
    "language": "en-US"
  }
}
GET https://{your-tenant}.sso.id/api/users/current/applications
Bearer JWT

Returns all SSO Applications assigned to the currently authenticated user (directly, via Application Roles, or via User Groups/Organizations) to populate the End-User App Launcher chiclet grid.

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
applicationId string (UUID) Unique identifier of the assigned application.
name string Display name of the application tile.
applicationType string Type of application (WEB, SPA, MOBILE, M2M).
authenticationProtocol string Configured SSO protocol (OIDC, OAUTH2, SAML2).
homePageURL string Application landing URL.
signOnURL string One-click SSO initiation URL for the App Launcher tile.
logo string Application icon URL or base64 data URI.
primaryColor string Hex color accent for the application tile.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/users/current/applications" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
[
  {
    "applicationId": "app_7712b-90a1-4c23-8b11-001122334455",
    "name": "CloudPulse CRM",
    "applicationType": "SPA",
    "authenticationProtocol": "OIDC",
    "homePageURL": "https://crm.cloudpulse.io",
    "signOnURL": "https://crm.cloudpulse.io/sso/login",
    "logo": "https://cdn.cloudpulse.io/logos/crm.png",
    "primaryColor": "#ff6b35"
  }
]
GET https://{your-tenant}.sso.id/api/users/tenants
Bearer JWT

Lists all Tenant workspaces that the authenticated user owns or is a member of, powering the top-left Multi-Tenant Workspace Switcher.

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.
userId Query string (UUID) Optional Optional explicit user ID; defaults to the authenticated JWT subject.
Response Fields & Schema
Field Type Description
tenantId string (UUID) Unique identifier of the tenant workspace.
tenantName string Canonical tenant slug/name.
friendlyName string Display name of the workspace.
tenantDomain string Default subdomain (e.g. cloudpulse.us.sso.id).
customDomain string Verified custom domain if configured (e.g. auth.cloudpulse.io).
region string Data residency region (US or EU).
roleId string The user's administrative Tenant Role in this workspace.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/users/tenants" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
[
  {
    "tenantId": "8c60a951-7e5c-4f25-8306-b62c7519c97a",
    "tenantName": "cloudpulse-us",
    "friendlyName": "CloudPulse Production (US)",
    "tenantDomain": "cloudpulse-us.us.sso.id",
    "customDomain": "login.cloudpulse.io",
    "region": "US",
    "roleId": "Owner"
  }
]
GET https://{your-tenant}.sso.id/api/users/{userId}/sessions
Bearer JWT

Lists all active browser and device sessions for the user, including IP address, user-agent, browser/OS fingerprint, and last-active timestamp.

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.
userId Path string (UUID) Required Target user UUID (or the authenticated user's own ID).
Response Fields & Schema
Field Type Description
sessionId string Unique identifier of the active session/refresh token.
userId string (UUID) User ID owning the session.
ipAddress string Client IPv4/IPv6 address recorded at sign-in.
browser string Parsed browser and OS summary (e.g., Chrome 131 on Windows 11).
userAgent string Raw HTTP User-Agent string.
createdOn string (ISO 8601) UTC timestamp when the session was established.
expiryDate string (ISO 8601) UTC expiration timestamp of the session.
isCurrentSession boolean True if this entry matches the caller's current token.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/users/usr_9f8e7d6c-5b4a-3c2d-1e0f-9a8b7c6d5e4f/sessions" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
[
  {
    "sessionId": "ses_44109ab8-12cd-4ef0-9911-aabbccddeeff",
    "userId": "usr_9f8e7d6c-5b4a-3c2d-1e0f-9a8b7c6d5e4f",
    "ipAddress": "198.51.100.42",
    "browser": "Chrome 131.0 on macOS",
    "createdOn": "2026-11-19T08:15:00Z",
    "expiryDate": "2026-11-26T08:15:00Z",
    "isCurrentSession": true
  }
]
DELETE https://{your-tenant}.sso.id/api/users/{userId}/sessions/{sessionId}
Bearer JWT

Immediately revokes a single active device session and invalidates its associated refresh tokens. To revoke all active sessions globally, call POST /api/users/{userId}/sessions/revoke-all.

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.
userId Path string (UUID) Required Target user UUID.
sessionId Path string Required Session identifier returned by GET /api/users/{userId}/sessions.
Response Fields & Schema
Field Type Description
status boolean True when the session has been terminated.
message string Confirmation message.
Sample Request
curl -X DELETE "https://{your-tenant}.sso.id/api/users/usr_9f8e7d6c-5b4a-3c2d-1e0f-9a8b7c6d5e4f/sessions/ses_44109ab8-12cd-4ef0-9911-aabbccddeeff" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
{
  "status": true,
  "message": "Session revoked successfully."
}
GET https://{your-tenant}.sso.id/api/compliance/export-my-data
Bearer JWT

GDPR Articles 15 & 20 Self-Service Data Portability endpoint. Generates a structured JSON archive containing the user's profile attributes, role assignments, organization memberships, consent records, and recent login telemetry.

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
exportedAtUtc string (ISO 8601) UTC timestamp when the archive was generated.
profile object Complete user profile attributes.
roles array Assigned application and tenant roles.
groups array Directory group memberships.
consentHistory array Chronological log of accepted privacy policies and terms.
recentActivity array Authentication and session history records.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/compliance/export-my-data" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
{
  "exportedAtUtc": "2026-11-19T12:00:00Z",
  "profile": {
    "userId": "usr_9f8e7d6c-5b4a-3c2d-1e0f-9a8b7c6d5e4f",
    "email": "[email protected]",
    "firstName": "Liam",
    "lastName": "Mercer"
  },
  "roles": ["Support Specialist"],
  "groups": ["Customer Operations"],
  "consentHistory": [
    { "policyVersion": "v2.4", "consentedAtUtc": "2026-10-01T09:12:00Z" }
  ]
}
POST https://{your-tenant}.sso.id/api/compliance/delete-my-account
Bearer JWT

GDPR Article 17 Right to Erasure endpoint. Permanently deletes the authenticated user's account and anonymizes historical audit references after verifying that the user is not the sole owner of an active tenant.

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.
password Body string Optional Current password confirmation (required for password-authenticated accounts).
reason Body string Optional Optional user-supplied reason for account deletion.
confirmErasure Body boolean Required Must be set to true to confirm irreversible erasure.
Response Fields & Schema
Field Type Description
success boolean Indicates whether the account erasure completed.
anonymizedAuditRecords integer Number of audit trail entries cryptographically anonymized.
message string Completion summary.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/compliance/delete-my-account" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "confirmErasure": true,
    "reason": "Consolidating personal accounts"
  }'
Expected Response 200 OK
{
  "success": true,
  "anonymizedAuditRecords": 42,
  "message": "Your account and personal data have been permanently erased."
}
AI Agent Prompt Build a Self-Service User Profile, Active Sessions & App Launcher Page
You are a senior frontend engineer. Build a **Self-Service Account Security & App Launcher Module** connected to **SSO.ID v2** (`https://{your-tenant}.sso.id/api`).

Using the authenticated user's Bearer token (`Authorization: Bearer `), implement:
1. **My Applications Grid**: Fetch `GET https://{your-tenant}.sso.id/api/users/current/applications` and render clickable app launcher cards that redirect to each app's SSO login URL.
2. **Profile & Avatar Editor**: Load `GET /api/users/self`, allow updating profile fields via `PUT /api/users/self`, and upload avatars via `POST /api/users/{userId}/avatar` (`multipart/form-data`).
3. **Active Device Sessions Manager**: Fetch `GET /api/users/{userId}/sessions`, display device/browser/IP/last-active metadata, and provide buttons for single-session revocation (`DELETE /api/users/{userId}/sessions/{sessionId}`) and global sign-out (`DELETE /api/users/{userId}/sessions/revoke-all`).
4. **GDPR Privacy Controls**: Add an "Export My Data (JSON)" button calling `GET /api/compliance/export-my-data` and a "Delete My Account" confirmation modal calling `DELETE /api/compliance/delete-my-account`.