Guides

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.

Optional

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 URIhttps://files.example.com/api/v1/auth/oidc/callback
Grant typeAuthorization code (PKCE allowed or required)
Client authenticationClient secret (client_secret_basic)
Scopesopenid 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:

.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
shell
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

ProviderIssuerGroups
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.cloudRoles 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.comAdd the groups scope: HOMESPACE_OIDC_SCOPES=openid profile email groups.
Microsoft Entra ID
App registration, platform Web
https://login.microsoftonline.com/<tenant-id>/v2.0With 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.comNo 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

Troubleshooting