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.
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-upSign in / Register (supports ?track=personal|enterprise)
/forget-password | /reset-passwordEmail password recovery (revokes all active sessions)
/consentOAuth 2.1 / MCP scope approval screen
/dashboardAccount Center & Multi-Session Switcher (max 5)
/dashboard/profileDisplay name, avatar (<= 2MB), email verification, Google/GitHub links
/dashboard/securityChange password (12–128 chars) & enable/disable TOTP 2FA
/dashboard/sessionsInspect device/IP sessions and revoke one or all others
/dashboard/appsInspect authorized OAuth/MCP apps and revoke access
/dashboard/organizationsOrganization list & set active organization
/dashboard/organizations/newCreate organization (slug 3–50 chars [a-z0-9-])
/dashboard/organizations/[slug]General settings & Danger Zone (Delete Org - Owner only)
/dashboard/organizations/[slug]/membersMembers, role updates, send/resend/cancel invites (7 days)
/accept-invitation/[id]Accept or decline an organization invitation
/admin/usersSystem-wide user directory, ban/unban, System Admin role governance (user.role='admin' only)
/admin/organizationsSystem-wide organization directory & emergency suspend/reactivate (user.role='admin' only)
/admin/projectsRegister & govern OAuth 2.1 Clients (user.role='admin' only)
/admin/resourcesDeclare RFC 8707 Resource Indicators & link clients (user.role='admin' only)
/admin/audit-logsImmutable audit logs & OAuth consent revocation (user.role='admin' only)
/en/docs/sso | /llms.txtOIDC/OAuth 2.1/MCP specs & machine-readable index
Verified Constraints & Limits
- 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.
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.
1.4. Account Center (/dashboard)
/dashboard/profileEdit display name, upload avatar (PNG, JPG, WebP up to 2 MB), resend verification email, and link or unlink Google / GitHub.
/dashboard/securityChange password (12–128 chars, optional revoke other sessions) and enable/disable TOTP Two-Factor Authentication via QR code.
/dashboard/sessionsInspect active devices, user agents, IP addresses, and timestamps; revoke individual sessions or all other sessions.
/dashboard/appsReview authorized OAuth / MCP apps and granted scopes; revoke access to immediately invalidate consent and tokens.
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
- Open /dashboard/organizations and click Create Organization (/dashboard/organizations/new).
- Enter the Organization Name; the form auto-normalizes Vietnamese diacritics into a lowercase slug (3–50 chars: [a-z0-9-]) with live availability checks.
- The creator is automatically assigned the owner role.
- 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).
| Role | Edit name / slug | Invite / Remove members | Change member roles | Delete organization (Danger Zone) |
|---|---|---|---|---|
| Owner (owner) | Yes | Yes (cannot remove Owner) | Yes (Owner only) | Yes (Owner only) |
| Org Admin (admin) | Yes | Yes (Members & invites) | No | No |
| Member (member) | No (read-only) | No | No | No |
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).
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.
/admin/usersBrowse global users, promote/demote System Admin role, revoke active sessions, or ban/unban accounts (banning immediately revokes all active sessions and authorization tokens).
/admin/organizationsMonitor B2B workspaces and membership counts, and perform emergency workspace suspension or reactivation.
/admin/projectsProvision and govern OAuth 2.1 Clients (Confidential or Public Native with PKCE S256), one-time Client Secrets, Redirect URIs, and scopes. Because DCR is disabled, all applications integrating with XCC IAM must be pre-seeded or registered manually here.
/admin/resourcesDeclare Resource Indicators, configure allowedScopes, and bind clients to target resources. Because enforcePerClientResources: true is active, JWT aud claims are only minted for explicitly linked clients.
/admin/audit-logsInspect immutable audit trails (sign-ins, password resets, role changes, bans, org suspensions, oauth_consent.grant) and revoke granted consents directly.