Sign-in and access
ZITADEL owns the user's identity. The application owns their projects, organization memberships and browser session. A person can change their display name or email address without changing which records belong to them: the API identifies them by their verified issuer and subject.
A browser session
Diagram source
sequenceDiagram
actor User
participant Web as Application web server
participant ID as ZITADEL
participant DB as Application database
participant API as Go API
User->>Web: Open sign-in and complete the form
Web->>ID: Verify credentials and any required challenge
Web-->>User: Show the local consent form
User->>Web: Approve the requested access
Web->>ID: Complete authorization and exchange the code with PKCE
ID-->>Web: Signed ID token and API access token
Web->>DB: Store the application session
Web-->>User: Set an opaque session cookie
User->>Web: Open a protected page
Web->>API: Request records with the access token
API-->>Web: Return the records in the actor's scope
User->>Web: Sign out
Web->>DB: Invalidate the application session
Web->>ID: Request termination of the provider session
Web-->>User: Clear cookies and show the local sign-in form
The browser sends an opaque cookie to the application. The web server uses the access token for the Go API. The API validates the token's signature, issuer, audience and expiry before resolving the application user. Keep the web session key and identity credentials in deployment secrets.
Sign-up, email confirmation, password recovery, consent and second-factor challenges all open on the application's own domain. The web server talks to ZITADEL. Verification and reset emails link back to the application. If a verification email expires or goes missing, open the verification form at /verify-email/resend in your application and enter the address you used to sign up. In Account settings, select Sign out to end the session. After explicit sign-out, starting sign-in again requires fresh authentication even if the provider remembers a previous session. Use a real test account, the same browser and a designated inbox to check the entire journey. The browser setup guide lists the identity settings for this version.
Who can see a record?
| Actor | What they can do |
|---|---|
| Signed-in user | Work with their own personal records. |
| Organization member | Work with their own projects inside an organization they belong to. |
| Organization administrator | Manage that organization's members and projects. |
| Application superadmin | Manage projects across organizations and access the user directory. |
| Notification recipient | Read their own inbox. This scope applies to administrators too. |
In demo mode, the local preview uses a shared demo scope. Use the identity profile and two real user sessions to verify access boundaries. Mobile clients obtain their own access tokens and call the same API. See the access-token decision for the verifier's exact checks.