Sign in with Google Workspace (@porterdemo.example) to raise or approve hardware requests
Shared passcodes and Employee ID logins are disabled. Production sessions are issued exclusively via Google OAuth 2.0 verified against the 1,452 active employees in the Darwinbox master; use the Demo switch in the main header for walkthroughs.
Single sign-on
Status on this link: Awaiting IT Google Cloud OAuth credentials (shared passcodes disabled)
Server-side access controls enforced on /api/auth/google/callback
| Check | Rule enforced on server |
|---|---|
| Hosted domain | OAuth prompt sets hd=porterdemo.example; callback verifies ID token hd claim and @porterdemo.example email suffix. |
| Verified email | Requires Google email_verified = true plus 32-byte CSRF state cookie match. |
| Darwinbox status | Email must match one of the 1,452 Active employees; all 34 Resigned accounts (e.g. PTR00398) are rejected. |
| Session & passcodes | POST /api/auth returns 405; session cookie is HTTP-only and HMAC-SHA256 signed. |
IT readiness & policy verifier
Test how the callback evaluates any email address against the @porterdemo.example domain rule and Darwinbox active roster (read-only check; never creates a session):
What IT needs to supply to activate live Google login
| Authorized redirect URI | /api/auth/google/callback |
| Environment variables | GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, AUTH_SESSION_SECRET, ALLOWED_GOOGLE_DOMAIN |
| Workspace domain note | porterdemo.example is an IANA-reserved .example domain from the demo sheet (no live Google mailbox exists on it). Set ALLOWED_GOOGLE_DOMAIN to Porter's live Workspace domain (e.g. theporter.in / porter.in) alongside the live Darwinbox feed. |