SSO
Register OIDC providers, control access with invitations, and understand account-linking behavior
Zerobyte's current SSO implementation is organization-scoped and OIDC-based. You register providers under Settings > Organization > Single sign-on, or directly at /settings/sso/new.
Zerobyte SSO requires an invitation for new users. Existing users link SSO from their signed-in account.
What Zerobyte supports
- Each SSO provider belongs to exactly one organization.
- The login page exposes registered providers as
Log in with {providerId}buttons. - Organization owners can register new providers.
- Organization owners and admins can manage invitations and delete existing providers.
- Zerobyte currently registers OIDC providers with the
openid,email, andprofilescopes.
Required values
| Zerobyte field | What it means | Example |
|---|---|---|
Provider ID | Stable unique identifier for this provider. It is used in the callback URL and is what users see on the login button. | acme-oidc |
Organization Domain | Domain recorded with the provider and used for provider discovery metadata. | example.com |
Issuer URL | The OIDC issuer published by your identity provider. | https://idp.example.com/realms/acme |
Discovery Endpoint | The provider's .well-known/openid-configuration URL. | https://idp.example.com/.well-known/openid-configuration |
Client ID | OIDC client identifier from your IdP. | zerobyte |
Client Secret | OIDC client secret from your IdP. | (secret) |
Callback URL
Register this exact redirect URI in your identity provider:
${BASE_URL}/api/auth/sso/callback/${providerId}Example:
https://backup.example.com/api/auth/sso/callback/acme-oidcSetup checklist
- In your identity provider, create a confidential or web OIDC client for Zerobyte.
- Register the callback URL above as an allowed redirect URI.
- Make sure the provider returns
emailand an email-verification claim. - In Zerobyte, open Settings > Organization > Single sign-on and click Register provider.
- Fill in the provider details and save.
- Ask existing members with a password or another sign-in method to link SSO from Settings → Account → Security.
- Invite users before asking them to sign in, unless their existing local account already belongs to the organization.
How access is decided
The important rule is that Zerobyte checks organization membership and pending invitations in addition to whatever your identity provider says.
| Situation | Result | Why |
|---|---|---|
| Brand-new user, no membership, no invitation | Blocked | There is no valid organization membership or pending invitation. |
| Brand-new user with a pending invitation | Allowed | Zerobyte creates the membership on first successful SSO login and marks the invitation as accepted. |
| Existing local account belongs to the organization and has a sign-in method | Link from Account → Security first | The user verifies both accounts before future SSO sign-ins. |
| Existing local account with a pending invitation to join the organization | Verify it from Account → Invitations first | The signed-in user verifies the invited email at the provider. Zerobyte then accepts the invitation and links SSO. |
| User was invited before, signed in once, was later removed from the organization, then tries SSO again | Blocked | The old invitation remains accepted; it is not reopened automatically after removal. |
Existing members who already have a sign-in method must link the provider from their signed-in Zerobyte account. A matching email and membership alone do not authorize linking.
Invitations and membership lifecycle
- Invitations are email-based, organization-specific, and role-bearing.
- A successful first SSO login for an invited user creates the membership and marks the invitation as
accepted. - Pending invitations must still be unexpired to work.
- Expired, cancelled, or already accepted invitations do not grant first-time access.
- If a user is removed later, create a new invitation before they try SSO again.
The invitation UI lets you assign member, admin, or owner at invite time. The accepted membership is created with that invited role.
Zerobyte does not currently provide fine-grained RBAC for backup operations. Invited members can operate backup resources inside the organization. Roles mainly restrict organization-management actions such as SSO settings, invitations, member management, and recovery-key downloads.
Link SSO to your existing account
- Sign in to Zerobyte with your current sign-in method and switch to the organization that owns the provider.
- In Settings → Account → Security, choose Link SSO for the provider you want to trust with your account.
- Sign in at the provider. The provider account can use a different email address.
- Review the provider account shown in Zerobyte and choose Confirm link. Zerobyte displays Linked.
You can now sign in with that provider.
To remove the link, choose Unlink next to the provider in the same settings. Your Zerobyte account needs another available sign-in method before you can unlink.
When replacing a provider, register the new provider and ask members to link it before removing the old one. If a member loses their only sign-in method, an instance operator can restore a local password with the reset-password CLI command. Password sign-in must be enabled for the member to use it.
Common failure cases
| What the user sees | Typical cause | What to do |
|---|---|---|
Access is invite-only. Ask an organization admin to send you an invitation before signing in with SSO. | No pending invitation, invitation expired, invitation was cancelled, or the user was removed after an earlier accepted invite | Create a new pending invitation or restore membership before retrying. |
SSO sign-in was blocked because this email already belongs to another user in this instance. | The provider is not linked to the existing Zerobyte account | Sign in with your current method and link SSO from personal settings, or verify your pending invitation there. |
Your identity provider did not mark your email as verified. | The IdP did not send a verified email claim | Fix email verification in the IdP before retrying. |
You have been banned from this application. | The user is banned at the application level | Remove the ban or use a different account. |
SSO authentication failed. Please try again. | Generic provider or callback failure | Check IdP redirect URI, client credentials, issuer, and discovery endpoint. |
