Human & Agent Guides · Code-Verified

XCC IAM Authentication, Account & Organization Guides

Grounded operational documentation for personal users, enterprise teams, and AI Agents / CLI workflows interacting with the XCC IAM portal.

Dual-Track (Personal / Enterprise)Multi-Session: up to 5 accountsUI Password: 12–128 charsOrg Invitation: 7 days
AI AGENT & CLI QUICK REFERENCE

Deterministic Reference for Agents & Automation

Every route, query parameter, limit, and scope boundary listed below is strictly verified against the current XCC IAM source code.

Primary UI Routes & Entrypoints

/sign-in | /sign-up

Sign in / Register (supports ?track=personal|enterprise)

/forget-password | /reset-password

Email password recovery (revokes all active sessions)

/consent

OAuth 2.1 / MCP scope approval screen

/dashboard

Account Center & Multi-Session Switcher (max 5)

/dashboard/profile

Display name, avatar (<= 2MB), email verification, Google/GitHub links

/dashboard/security

Change password (12–128 chars) & enable/disable TOTP 2FA

/dashboard/sessions

Inspect device/IP sessions and revoke one or all others

/dashboard/apps

Inspect authorized OAuth/MCP apps and revoke access

/dashboard/organizations

Organization list & set active organization

/dashboard/organizations/new

Create organization (slug 3–50 chars [a-z0-9-])

/dashboard/organizations/[slug]

General settings & Danger Zone (Delete Org - Owner only)

/dashboard/organizations/[slug]/members

Members, role updates, send/resend/cancel invites (7 days)

/accept-invitation/[id]

Accept or decline an organization invitation

/admin/users

System-wide user directory, ban/unban, System Admin role governance (user.role='admin' only)

/admin/organizations

System-wide organization directory & emergency suspend/reactivate (user.role='admin' only)

/admin/projects

Register & govern OAuth 2.1 Clients (user.role='admin' only)

/admin/resources

Declare RFC 8707 Resource Indicators & link clients (user.role='admin' only)

/admin/audit-logs

Immutable audit logs & OAuth consent revocation (user.role='admin' only)

/en/docs/sso | /llms.txt

OIDC/OAuth 2.1/MCP specs & machine-readable index

Verified Constraints & Limits

Dual-Track Params
track, mode, type, tab, persona, account_type, accountType, user_type, userType (= personal | enterprise)
UI Password Policy
12–128 characters on Sign-up, Reset Password & Security; Argon2id hashing
Multi-Session
Maximum 5 concurrent sessions in one browser
Organization Slug
3–50 chars, regex ^[a-z0-9]+(?:-[a-z0-9]+)*$
Invitation Lifetime
7 days (604,800s); only the exact invited email can accept
Current Org Roles
owner > admin > member (distinct from system IAM admin at /admin)
Admin Guard (/admin/*)
Requires user.role === 'admin' (distinct from org admin; non-admin gets 403, DB-promoted)
Resource Binding (RFC 8707)
enforcePerClientResources: true — JWT aud is minted only for linked Resource Indicators
DCR Status (RFC 7591)
Disabled (allowDynamicClientRegistration: false; POST /oauth2/register returns 403 access_denied; registration_endpoint omitted from discovery) — provision clients at /admin/projects
Scope Boundaries for Agents (Do Not Assume Unbuilt Features)
  • No separate 'agent' principal account type exists yet; AI agents currently authenticate via human-delegated OAuth 2.1 / PKCE S256 tokens (see /en/docs/sso).
  • No RFC 8693 Token Exchange 'act' claim or granular 'mb:*' scopes are implemented in the current codebase.
  • Organization Settings > Danger Zone currently supports Delete Organization only (Owner only); ownership transfer UI and single-owner enforcement are not present in this codebase.
  • Current verified codebase organization roles are owner > admin > member; do not assume organization admin has been removed or that single-owner lock exists.
  • DCR (RFC 7591) is disabled (allowDynamicClientRegistration: false, POST /oauth2/register returns 403 access_denied, and registration_endpoint is omitted from discovery). Agents must use pre-seeded clients or clients registered manually in /admin/projects.
Part 1 · G1 — Identity, Sign-In & Account Center

Sign-In, Dual-Track, Security & Multi-Session

Manage personal and enterprise identities from initial sign-in through multi-factor security and fast account switching within the same browser.

1.1. Dual-Track Model & URL Parameter Locking

Opening /sign-in or /sign-up directly renders both Personal and Enterprise tabs. When a satellite app passes an explicit track parameter, XCC IAM locks onto that track and hides the tab switcher.

Personal Track (?track=personal)

  • Built for independent developers and personal accounts.
  • Supports self-service email registration or Google / GitHub sign-in (when configured).
  • Accepted query aliases: track, mode, type, tab, persona, account_type, accountType, user_type, userType.

Enterprise Track (?track=enterprise)

  • Designed for B2B organization staff and enterprise applications.
  • Emphasizes work email login and organizational workspace workflows.
  • The track parameter may appear in the direct URL query, signed oauth_query, or callbackURL.

1.2. Registration, Password Recovery, CAPTCHA & Consent

Sign-Up & 12-Character Minimum Password

Sign-Up (/sign-up), Reset Password (/reset-password), and Change Password (/dashboard/security) forms enforce 12–128 characters in the UI. Passwords use Argon2id hashing and are protected by Cloudflare Turnstile and rate limiting.

Forgot Password & Automatic Session Revocation

Submit your email at /forget-password to receive a reset link for /reset-password?token=.... Completing a password reset immediately revokes all active sessions.

Social OAuth (Google & GitHub)

When Google or GitHub OAuth credentials are configured on the server, users can sign in on /sign-in or link/unlink providers in /dashboard/profile.

Transparent Consent Screen (/consent)

During OIDC/MCP authorization, /consent displays the requesting client application and requested scopes (e.g. openid, profile, email, offline_access, mcp:access) so you can Approve or Deny.

1.3. Multi-Session Switcher (Up to 5 Accounts)

XCC IAM supports up to 5 concurrent sessions in the same browser. Open the account switcher at the bottom of the /dashboard (or /admin) sidebar to:

  • 1-Click Account Switch: activate another signed-in account without re-entering credentials.
  • Add Another Account: opens /sign-in?callbackURL=/dashboard to sign into an additional account.
  • Sign Out Current / All Accounts: sign out of only the active account or clear all stored browser sessions.
  • Integration note: while the browser holds up to 5 sessions, each session inside a satellite app still acts as 1 account at a time.
Part 2 · G2 — B2B Organizations

Creating Organizations, Invitations & Roles

Manage B2B workspaces under /dashboard/organizations: provision validated slugs, invite team members, and understand verified role permissions.

2.1. Creating & Switching Active Organizations

  1. Open /dashboard/organizations and click Create Organization (/dashboard/organizations/new).
  2. Enter the Organization Name; the form auto-normalizes Vietnamese diacritics into a lowercase slug (3–50 chars: [a-z0-9-]) with live availability checks.
  3. The creator is automatically assigned the owner role.
  4. In /dashboard/organizations, click Set Active to switch your current session's active organization context.

2.2. Inviting Members & Acceptance Flow (/accept-invitation/[id])

  • Open /dashboard/organizations/[slug]/members and click Invite Member to send an email invitation with an initial role of Member or Admin.
  • Invitations remain valid for 7 days from creation.
  • Organization Owners and Admins can resend or cancel pending invitations.
  • On /accept-invitation/[id], the invitee must be signed in with the exact invited email (switching accounts directly from the page if needed) before accepting or declining.

2.3. Current Verified Organization Role Matrix

Important distinction: the Admin role below is Organization-level Admin, distinct from System IAM Administrator (user.role = 'admin', who accesses /admin/*). This matrix reflects the exact 3 roles (owner > admin > member) currently enforced in code (no single-owner lock or ownership transfer UI yet).

RoleEdit name / slugInvite / Remove membersChange member rolesDelete organization (Danger Zone)
Owner (owner)YesYes (cannot remove Owner)Yes (Owner only)Yes (Owner only)
Org Admin (admin)YesYes (Members & invites)NoNo
Member (member)No (read-only)NoNoNo

2.4. Organization Settings & Danger Zone (/dashboard/organizations/[slug])

Owners and Org Admins can update organization name, slug, and metadata. Danger Zone currently provides Delete Organization only (restricted to Owner; permanently removes the organization, memberships, and pending invitations).

Section 3 · G3 — System Admin Console (/admin/*)

System Users, Organizations, OAuth Clients & Audit Governance

Operator console restricted to XCC IAM System Administrators for governing global accounts, workspaces, OAuth 2.1 clients, RFC 8707 resources, and security audit trails.

Verified access guard: all /admin/* routes require an authenticated session with user.role === 'admin' (non-admin accounts receive a 403 Access Denied screen). System admin promotion is performed operationally in the database and is completely separate from organization-level admin.

Integrating OIDC, OAuth 2.1, or an MCP Server?

Continue to the technical SSO & MCP integration guide for developers and AI agents, or jump directly to sign-in and organization management.