Authentication Architecture
GxP separates administrator, attendee, reader, project-integration and plugin-management identities. Authentication resolves one of those principals. Authorization then evaluates the operation, owning context, page dependencies and audience rules that apply to it. The same bearer format is not a shared permission model.
For the distinction between project, team, Developer Hub and restricted system operations, see Administration Levels and Support Boundaries.
Guards and principals
| Mechanism | Principal | Current role |
|---|---|---|
admin / web custom admin session | Admin | Dashboard/Developer Hub login and team/project administrative permissions |
portal custom session | Attendee | Configured attendee login on a serving portal |
reader custom session | AccessPointReader | Configured device login; distinct from attendee identity |
| Sanctum bearer | Token's owning model | REST authentication for project, attendee, page, reader and plugin credentials; owner-specific authorization follows |
Configured api Passport guard | Admin | Legacy/admin OAuth surfaces that explicitly use it; not a replacement for every REST route's Sanctum contract |
config/auth.php declares these guards/providers. REST routes explicitly use auth:sanctum; selected public credential exchanges and portal-form routes remove that middleware and apply their own gates. MCP has its own OAuth/authorization contract. An administrator session or OAuth connection is not a project key, and a page key is not an administrator account.
Hosts and request contexts
The dashboard and Developer Hub use administrator context. A configured portal hostname resolves the portal and project for attendee/device experience routes. The API hostname registers both /api/v1 and /v1; the portal API uses /api/v1. Host selection is part of the contract, not merely a change in URL formatting.
Project data APIs generally use /projects/{teamSlug}/{projectSlug}/.... The route resolves project/team context before endpoint-specific authorization. Do not infer all tenant/record isolation from a token being owned by a project; prove the endpoint's checks. The project-key guide records project-ownership and list/field-scoping limitations reproduced with synthetic source fixtures.
Portal-only form, quiz and survey operations require a page on the portal serving the request. The API host cannot supply that serving-portal context simply by receiving the same page key.
Administrator authorization
Administrator actions use team-scoped roles/direct permissions and optional project assignments. PermissionsService and HasRolesAndPermissions apply the intended guard group and team/project context; policies look up configured action permission names. ProjectPolicy::manageApiTokens requires an Admin with update_projects in the selected project/team context.
Super-admin handling is an explicit separate hook. Test ordinary role-based accounts as well as super admins, since bypass privileges can hide broken policy/route wiring. See Authorization and Roles and Permissions for the contributor interfaces.
Attendee login and token issuance
The portal login page is /log-in. Configured methods dispatch through AttendeeAuthFactory and their method handlers: email/password, phone/password, kiosk/link/magic-link, badge, SSO and one-time password use different credential and eligibility rules. Method IDs identify configured portal-method records. Do not implement one generic credential body for every method.
Automatic registration is explicitly configured and method-dependent. It must have an appropriate attendee type/unique field and satisfy the method's group rules. A portal access code admits a visitor to protected portal browsing; it is not, by itself, an attendee identity or API bearer.
POST /auth/token is the existing JSON attendee-token exchange when portal token auth is enabled. For supported methods it avoids creating the normal attendee login session and issues an individual Sanctum token with portal:{portalId}. Expiration uses token_duration, then session_timeout, then 1440 minutes. DELETE /auth/token validates that attendee/current-token portal ability and deletes that token only.
The normal web OTP handlers request/verify a code through their session/redirect flow. The documentation quiz adapter adds a separate prepared JSON OTP/native-attempt contract; its release is not established by the presence of the web OTP method.
Restricted authentication-method catalog
System Attendee Authentication Methods at /system/attendee-authentication-methods manages shared method definitions. It inherits system-host super-admin, two-factor, authenticated/verified account, team-context and password-confirmation gates. The controller registers resource authorization with a parameter name different from the resource route's generated name; do not treat that registration as proof of deployed binding/policy isolation. Verify ordinary-account and exact-resource refusal separately. This catalog is distinct from portal-specific method records, administrator sign-in and actual attendee credentials/tokens.
Inspect definitions and synchronize missing methods
The list shows Name, Key and Active; search matches name/key, with Name ascending and 25 rows by default. The current page offers Sync Methods and detail navigation, not a general create/delete dialog. Sync is a POST throttled to one request per minute. It enumerates the built-in method metadata and creates missing nondeleted keys. It does not update existing names, descriptions, default labels, scope or active flags, remove extra definitions or restore a known configuration. Do not repeatedly sync to fix a disabled method or use it as a read-only diagnostic.
Built-in metadata covers email/password (uuid_password), phone/password, kiosk, badge scan, magic link, link, OTP, SSO and reader access-code/temporary-code entries. A row/key is metadata, not implementation of a new credential handler. Adding an arbitrary key through a direct integration does not extend runtime authentication. Soft-deleted rows are excluded from Sync's existing-record query, while create validation's key uniqueness does not establish safe deleted-key reuse; preserve IDs and have the platform owner reconcile an uncertain sync result instead of creating duplicates.
Edit labels, availability and scope
Open the method's Settings to inspect Name, Key, Description, Active, Default Section Title, Default Button Text and Subscription Mask. Verify the saved response and reload after an authorized edit; Active has a separate confirmation-enabled inline update. Although Key is shown as a text field, update validation does not accept it. Do not expect editing the displayed key to change runtime dispatch or safely migrate existing portal references. Default labels describe configuration defaults, not proof that every already-configured portal's custom labels were replaced.
Active catalog selection uses the deployment's mask plus unscoped records; with no mask it selects unscoped records. The active-list service caches results for up to a day, and observed create/update/delete/restore hooks flush its cache tags. Those hooks do not prove every portal/browser/project cache is immediately refreshed. Changing a shared definition can affect multiple portals, so retain its ID/key, mask, prior state and intended affected population before a supported change.
Configure the portal and verify identity
Choose an available active definition through the owning portal's authentication controls, then configure its portal-specific active state, priority/default, lookup fields, group rules, credentials/provider and registration behavior as applicable. The portal create handler checks the definition against its active mask-scoped list; kiosk/badge flows require the intended unique lookup field. A configured method uses the portal-specific method ID, not simply the catalog ID or key. Follow the method's actual token/login contract above and verify the returned principal and portal scope.
The reviewed attendee factory joins the portal's method records to catalog definitions and requires both to be active before dispatching through its implemented handler map. Catalog reader entries are not included in that attendee handler map. Their appearance is not evidence that a reader credential becomes an attendee or authorizes quiz attempts. Use the dedicated reader contract and token owner checks; never infer attendee identity from a catalog name or a successful reader login.
Diagnose availability and recover changes
For a missing option, check actual host/mask, definition ID/key/active state, mask/unscoped selection and portal configuration before Sync or another grant. For login failure, inspect the portal-specific method ID and active state, supported handler, method-specific credential/registration/group rules and actual response. A saved catalog edit does not establish delivery of an OTP/link, successful SSO, automatic registration, token issuance or intended access. Verify allowed and denied users/portals with controlled accounts in the deployed environment.
For an uncertain edit/sync, compare the exact existing records and saved values before retrying. A detail view supplies recent audit records (up to 25); it is not a complete history or session/token inventory. Deactivation can affect subsequent method selection/login but does not itself revoke previously issued tokens or existing sessions. Deletion uses soft deletion through the service; the current list offers no ordinary delete/restore flow. Keep identity recovery, credential handling and production rollback in the platform owner's private runbook, and establish a working intended login path before retiring a shared method. Do not send real codes or change shared authentication merely to test whether a control is available.
Page identity, login and dependency authorization
The runtime carries page context in X-Portal-Page-Token. An external attendee bearer occupies Authorization; the page key stays in the separate header. A page-only bearer can represent a guest where permitted. PortalPageTokenResolver, PortalApiConfig, ResolvePermissionContext and EnforcePermissionContext bind/check both transports.
An inactive or audience-denied page returns an unavailable response, generally 404. A login-only page without a qualifying same-project attendee/active reader returns 401. A reader is evaluated as a guest for attendee group rules. Conflicting page keys and cross-project/portal page context fail; widget tokens carry no independent page authority.
The compiled page rule plan can constrain supported actions, rows and visible fields. Each endpoint still has to invoke the appropriate enforcement/query/serialization path. Navigation filtering is not data authorization. Legacy page-key scoping exceptions and overlapping permissive grants need explicit review; they do not establish identity/ownership checks for every record.
Sessions, expiry and browser transport
Portal custom session storage applies the configured session lifetime; AttendeeSessionTimeout records activity and relies on the custom handler's TTL rather than manually expiring every request. Remember-me behavior and method overrides are separate from bearer-token expiry. Configure the actual portal/method settings and test their effective result; do not treat a remember-me duration as a universally fixed API TTL.
Web login/submission routes use the session/CSRF stack unless explicitly exempted. /auth/token is CSRF-exempt, but the current CORS path list covers API/spec paths rather than that web route. Cross-origin browser use needs its own deployed origin/header/session checks. A successful server request does not prove an iframe or external browser will work.
Readers, project keys and plugin tokens
Print-server readers exchange an identifier/access code at /api/v1/projects/{teamSlug}/{projectSlug}/readers/login. The current direct exchange accepts active print_server readers only and returns a reader bearer; its default expiry is seven days, with per-reader overrides. Other app/companion/BLE flows are separate. The reader principal has an operation allowlist and cannot become an attendee-only quiz participant. See Reader Authentication.
Project API keys are issued by the Developer Hub on a project with explicit abilities and required expiry. Scoped ability syntax and individual-record policy checks do not prove list/field enforcement; use the limitations and acceptance checks in Project API Keys. Legacy coarse grants are broad compatibility behavior.
Plugin API tokens require an active/unexpired PluginApiToken owner and explicit plugin read/write mappings. They authorize supported plugin-management routes, not ordinary project-data APIs. See Plugin API Tokens.
Acceptance and implementation evidence
Validate ordinary admin roles, correct/wrong team and project, guest/public versus login-only pages, overlapping/denied audiences, active/inactive readers, wrong token types, expiry and logout. Check direct calls, lists/searches, individual resources, nested results, exports and fields. Record failures without exposing real credential or attendee data.
Reviewed against experience-portal 04c7d10048 on 2026-10-13: config/auth.php, config/sanctum.php, Kernel, RouteServiceProvider, portal/API route files, BaseDashboardPolicy, ProjectPolicy, PermissionsService, HasRolesAndPermissions, portal permission services, attendee/reader auth factories/controllers, and custom session classes. Representative local tests and known limitations are recorded separately; source presence is not deployed acceptance.
The system authentication-method catalog supplement was source-reviewed on 2026-10-15 at platform 3b48eb675f7c8e3c4f0b87d0cd613fa7fb371093. No sync, catalog/portal edit, login, OTP delivery, attendee registration or token/session mutation was executed; deployed binding, provider and identity acceptance remain required.