GREAT PEARL / ENGINEERING AREA 03
The right people.
The right permissions.
Make sign-in and access part of the application’s design. Define who can do what, and keep organisational boundaries clear.
A PRACTICAL STARTING POINT
Shape the right
piece of work.
GreatPearl Auth provides a foundation for identity engineering. Handshake explores consent-based device security and support.
- 01
Application authentication & sessions
- 02
Role-based permissions & tenant boundaries
- 03
Identity-aware application architecture
IDENTITY ENGINEERING WALKTHROUGH
Step-by-step:
How we engineer identity & access.
A technical breakdown of our authentication pipeline, Argon2id password verification, multi-tenant isolation and deterministic session lifecycle.

4-stage login, Argon2 verification & session issuance
- POST /auth/login
- Argon2id Hashing
- PostgreSQL Session Store
- OAuth / SSO Providers
- 1. Client redirect to central login: Unauthenticated requests to the client/admin portal redirect cleanly to the GreatPearl Auth login endpoint.
- 2. Credential & provider capture: The login screen accepts email/password credentials (or configured Google, Microsoft and Facebook OAuth providers) and dispatches `POST /auth/login`.
- 3. Argon2 verification & DB session: The backend validates input, looks up the user record, verifies the Argon2 password hash and writes a stateful session token to PostgreSQL.
- 4. Authorized dashboard hydration: Only after session creation does the user enter the GreatPearl Auth Admin Portal to manage users, groups, providers, sessions, security and logs.

Default-deny public authentication gate
- Default-Deny Gate
- Zero Pre-Auth Exposure
- 256-Bit CSPRNG Tokens
- Strict CSP & HSTS
- 1. Unauthenticated view isolation: Protected workspace DOM nodes and navigation controls are withheld until a live server session check succeeds.
- 2. Credential input sanitization: Account identifier and password fields enforce strict client and server validation without leaking account existence on failure.
- 3. Opaque session binding: Successful sign-in issues a 256-bit cryptographically random session token bound to the user and tenant context.

Tenant onboarding, subdomain binding & policy controls
- Subdomain Isolation
- Tenant-Scoped Schemas
- Audit Logging
- Security Policy Toggles
- 1. Dedicated tenant namespace: Each client organisation is provisioned with a distinct tenant record, administrative contact, plan tier and dedicated subdomain (`
.greatpearl-auth.com`). - 2. Granular service activation: Core capabilities—Login Service, User Management, Email Service, OAuth Providers, Audit Logging and Security Policies—are toggled per tenant.
- 3. Relational boundary enforcement: Composite database keys ensure users, sessions and audit trails cannot cross tenant boundaries.

Deterministic token check, expiry & renewal logic
- Session State Machine
- Token Expiry Guard
- Automatic Session Purge
- Client + Server Validation
- 1. Startup session inspection: On application boot (`APP STARTS`), the client checks for an existing saved session token, cookie or JWT.
- 2. Expiration & revocation branch: If a token exists, the system validates its signature and expiry window; expired or revoked tokens immediately trigger `Clear Session` and return to the Login Screen.
- 3. Pre-flight & server authentication: When logging in, client-side syntax validation runs first (`Fail` shows inline error; `Pass` dispatches to server) before loading the authenticated user context.

Invitation-only access & pre-session device verification
- Cryptographic Device Identity
- Invitation-Only Enrolment
- Pre-Session Verification
- Explicit Consent Gate
- 1. Invitation-gated sign-in: GreatPearl Handshake restricts entry to invited organisation accounts (`Work email` + credential verification) with no open self-registration.
- 2. Pre-session device verification: Before a session begins, the endpoint validates cryptographic device identity, tenant binding and explicit `Trust this device` enrolment state.
- 3. Security-first administration boundary: Enforces the core Handshake rule—`Security first. Remote administration second.`—requiring verified access and consent before any support or collaboration capability.
BRING YOUR CONTEXT
A few questions.
A clearer direction.
No technical specification needed. Start with what you know; we’ll discuss the requirements and dependencies together.
01Who needs access to the application?
02What roles and boundaries are required?
03Which sign-in systems already exist?
Start the conversationScope & commitments
No security guarantee, certification, penetration-testing accreditation or incident-response SLA is implied. Any security assessment requires an agreed scope and explicit authorisation.
