Other OIDC providers
Home Space works with any provider that speaks OpenID Connect: Authentik, Auth0, Zitadel, Authelia, Microsoft Entra ID, Google and others. The steps are the same everywhere; only the names in the provider's console differ.
Single sign-on is not needed: by default users sign in with a username and password. Set it up after Install the server and nginx, keeping a password administrator as a way in. Using Keycloak? Follow Sign in with Keycloak.
How it works
Home Space is a confidential client using the authorization code flow with PKCE (S256). After the provider has vouched for a user, Home Space issues its own tokens, so the apps work the same as with a password. The server reads the provider's settings from <issuer>/.well-known/openid-configuration when it starts.
1. Register Home Space at the provider
Create an application or client of type web application (sometimes regular web app or confidential) with:
| Redirect URI | https://files.example.com/api/v1/auth/oidc/callback |
|---|---|
| Grant type | Authorization code (PKCE allowed or required) |
| Client authentication | Client secret (client_secret_basic) |
| Scopes | openid profile email |
Write down the client ID, the client secret and the issuer URL. The one redirect URI covers the web, desktop and mobile apps.
2. Configure Home Space
Add to /opt/homespace/.env:
HOMESPACE_PUBLIC_URL=https://files.example.com HOMESPACE_OIDC_ISSUER=https://idp.example.com/application/o/homespace/ HOMESPACE_OIDC_CLIENT_ID=your-client-id HOMESPACE_OIDC_CLIENT_SECRET=your-client-secret # Label of the sign-in button HOMESPACE_OIDC_NAME=Authentik # Optional: only members of this group may sign in # HOMESPACE_OIDC_REQUIRED_GROUP=family # HOMESPACE_OIDC_GROUPS_CLAIM=groups
cd /opt/homespace sudo docker compose up -d --force-recreate server sudo docker compose logs -f server # look for: single sign-on enabled
The issuer must be https:// and must match the issuer field of the provider's discovery document exactly, including a trailing slash if it has one. Groups are read from the ID token, as one string or a list of strings. All the settings are explained in the configuration reference.
Provider notes
| Provider | Issuer | Groups |
|---|---|---|
| Authentik Provider type OAuth2/OpenID, client type Confidential | https://authentik.example.com/application/o/<slug>/ | The default profile scope already sends groups with group names; keep Include claims in id_token on. |
| Auth0 Regular Web Application | https://<tenant>.<region>.auth0.com/ (with the trailing slash) | Auth0 only accepts namespaced custom claims. Add a post-login Action that sets e.g. https://files.example.com/groups on the ID token, and set HOMESPACE_OIDC_GROUPS_CLAIM to that name. |
| Zitadel Web application, auth method Basic | https://<instance>.zitadel.cloud | Roles arrive in urn:zitadel:iam:org:project:roles; the simplest is an Action that copies them into a groups claim. |
| Authelia Client in identity_providers.oidc.clients | https://auth.example.com | Add the groups scope: HOMESPACE_OIDC_SCOPES=openid profile email groups. |
| Microsoft Entra ID App registration, platform Web | https://login.microsoftonline.com/<tenant-id>/v2.0 | With groups claim on, Entra sends group object IDs: put the ID in HOMESPACE_OIDC_REQUIRED_GROUP. |
| Google OAuth client, type Web application | https://accounts.google.com | No groups: anyone with a Google account could sign in, so limit the users on the consent screen (internal or test users). |
These consoles change often; when a name differs, look for the matching setting in the provider's own documentation.
Users and administrators
- A user is created on first sign-in, named after
preferred_username, then the part of the e-mail before the@, then the subject id; a number is added if the name is taken. - Accounts are matched on the provider's subject id, never on the e-mail address, so changing an e-mail at the provider keeps the account.
- New users are regular users. Make one an administrator in the web administration or with
sudo docker compose exec server homespace-ctl user admin NAME. - The provider signs these users in and keeps their two-factor sign-in and passkeys, so they get no password, authenticator app, recovery codes or passkeys in Home Space. Protected folders work for them as for anyone. To confirm a sensitive change, they sign in at the provider again.
- An administrator who sets a password for such a user, in the user's panel or with
homespace-ctl user passwd NAME, turns them into a local account: the link to the provider is removed and they are signed out everywhere. Their next sign-in through the provider would create a new, empty user, so tell them to sign in with the password instead. - To turn passwords off, set
HOMESPACE_PASSWORD_LOGIN=false, after an administrator has signed in through the provider. Users then sign in with the provider, and local accounts with a passkey.
Troubleshooting
- The server does not start: the log names the problem.
discovering the OpenID Connect providermeans the issuer is wrong or the container cannot reach it; a… is required with HOMESPACE_OIDC_ISSUERmessage names a missing setting. - The provider rejects the redirect URI: it must be exactly
HOMESPACE_PUBLIC_URL+/api/v1/auth/oidc/callback. - Group members are refused: decode an ID token from the provider (for example in its test tool) and check the claim name and that the values are plain group names.