OpenID Connect
Let people sign in to a DownloadPulse server through your own identity provider: register the client, fill in the OpenID Connect card, verify it and run safely on OIDC.
- Server
On this page
- Before you start
- Register DownloadPulse at your identity provider
- The OpenID Connect card
- Provider identity and callback
- Client credentials
- Scopes and group claim
- Access Control
- The issuer URL must match exactly
- Test and Verify Sign-In
- The safe bootstrap order
- Running on OpenID Connect alone
- What people see when they sign in
- Accounts created by OIDC
- Troubleshooting
OpenID Connect (OIDC) lets people sign in to a DownloadPulse server through an identity provider you already run, such as authentik or Keycloak. The provider proves who someone is. DownloadPulse’s Access Control rules then decide whether that person may use it, and with which account. This page walks through the whole setup, from registering DownloadPulse at the provider to running on OIDC alone.
DownloadPulse uses the standard Authorization Code flow with PKCE, state and nonce, and validates the issuer and audience. Any provider that follows the standard should work.
Note: OpenID Connect is available only on a Server deployment. A Standalone installation, which includes the desktop app, can’t turn it on. See Server deployment.
Before you start
Link to this section: Before you startYou need:
-
A canonical HTTPS address for DownloadPulse. This is the address people use to reach it, for example
https://download.example.com. OpenID Connect requires a canonical HTTPS external URL, while password-only LAN setups can stay on HTTP. Terminate HTTPS at your reverse proxy, and make sure the proxy doesn’t rewrite the callback path. -
That address configured in DownloadPulse. The recommended way is the
PUBLIC_BASE_URLenvironment variable on the container:yamlenvironment: PUBLIC_BASE_URL: https://download.example.comYou can also type it into Public DownloadPulse Base URL in the OpenID Connect card. When
PUBLIC_BASE_URLis set, the field is read-only and says Managed by PUBLIC_BASE_URL. Use an origin only, in the formhttps://host[:port], with no path, query, fragment or credentials. -
Username & Password sign-in turned on, with you signed in as an Admin. An open installation can’t make an unproven OIDC setup its only way in, and Test needs a signed-in session. See Password sign-in.
-
An HTTPS issuer at your identity provider. DownloadPulse refuses an issuer URL that isn’t HTTPS.
Register DownloadPulse at your identity provider
Link to this section: Register DownloadPulse at your identity providerCreate an OIDC application, or client, at your provider with these settings:
| Provider setting | Value |
|---|---|
| Client type | Confidential, with a client secret, unless your provider supports public clients (see below) |
| Grant / flow | Authorization Code |
| Redirect / callback URI | https://<your-host>/auth/oidc/callback, exactly as DownloadPulse shows it in OIDC Callback URL |
| Scopes | openid profile email, plus whatever your provider needs to send a groups claim |
The callback URL is always your public base URL followed by /auth/oidc/callback. For example, if the base URL is https://download.example.com, register https://download.example.com/auth/oidc/callback.
Is a client secret required? DownloadPulse reads the client authentication methods your provider advertises in its discovery document:
- If the provider advertises
client_secret_basicorclient_secret_post, enter the client secret. If the provider doesn’t list any methods,client_secret_basicis assumed, so you need a secret then too. - Leaving Client Secret empty works only when the provider advertises the public-client method
none. Otherwise sign-in can’t start, and DownloadPulse reports that the OIDC provider requires client authentication.
The simplest choice is a confidential client with a secret.
After you create the application, note three values from your provider: the issuer URL, the client ID and the client secret.
The OpenID Connect card
Link to this section: The OpenID Connect cardOpen Settings › Authentication. The OpenID Connect card is part of the Advanced presentation, so choose Advanced in My Account if you don’t see it. Each field is saved when you leave it. Stored secrets are never shown again.
Provider identity and callback
Link to this section: Provider identity and callback| Field | What to enter |
|---|---|
| Provider Name | The name shown on the sign-in page, as in Sign in with Authentik. The default is OpenID Connect. |
| Public DownloadPulse Base URL | The externally reachable HTTPS address, used for secure browser sessions and for building the callback URL. It’s read-only when PUBLIC_BASE_URL is set. |
| OIDC Callback URL | Read-only. It appears once the base URL is set. Use Copy and paste it into your provider’s redirect/callback URI configuration exactly. |
| Issuer URL | The issuer your provider publishes, copied exactly, including a trailing / if it has one (see below). |
Client credentials
Link to this section: Client credentials| Field | What to enter |
|---|---|
| Client ID | The client identifier your provider issued. It’s required. |
| Client Secret | The client secret. The placeholder reads Optional for public clients, or Stored Client Secret Configured. Blank keeps it. once a secret is stored. Leave it blank to keep the stored secret, or enter a new value to replace it. Clear inside the field removes the stored secret after you confirm Clear stored client secret?. Sign-in then fails until you enter a new secret, unless the client is public. |
Scopes and group claim
Link to this section: Scopes and group claim| Field | What to enter |
|---|---|
| Scopes | What DownloadPulse requests from the provider at every sign-in, separated by spaces. The usual value is openid profile email. openid is always included even if you leave it out. |
| Group Claim | The name of the claim your provider uses to list a user’s groups. It’s usually groups, which is also the default. It can’t be empty. |
Access Control
Link to this section: Access ControlSigning in at the provider and being allowed into DownloadPulse are separate checks.
| Control | Effect |
|---|---|
| Allow Any Authenticated OIDC Identity | When on, anyone your provider signs in may use DownloadPulse, and the lists below are ignored. |
| Default Role for New OIDC Users | The role given to an identity the first time it signs in: User or ReadOnly User. OIDC never creates an Admin. You can change any account’s role later in Users & Access. |
| Allowed Subjects | One per line, written as issuer|subject-id, for example https://id.example/application/o/downloadpulse/|user-1. Use the provider’s unique subject ID, not a username. The issuer part must be your exact issuer URL. |
| Allowed Emails | One address per line. Only addresses the provider reports as verified (email_verified=true) match. Letter case doesn’t matter. |
| Allowed Groups | One group name per line. The groups are read from the Group Claim. |
With Allow Any Authenticated OIDC Identity off, a person must match every list that is filled in. Empty lists are skipped. If every list is empty, no one can sign in through OIDC, and DownloadPulse won’t make such a configuration your only sign-in method. Subjects and group names must match exactly. A user whose token has no group claim doesn’t match a group list.
Warning: Don’t turn on OpenID Connect without an access policy that matches exactly the people you intend. Allow Any Authenticated OIDC Identity admits everyone your provider will sign in, which may be more people than should use DownloadPulse.
The issuer URL must match exactly
Link to this section: The issuer URL must match exactlyThe issuer is an exact identifier, not just a web address. DownloadPulse checks that the provider’s discovery document names the very same issuer, and that every ID token carries it. An issuer ending in / is not the same as the same text without it. Providers such as authentik commonly publish a per-application issuer that ends with /, for example https://id.example/application/o/downloadpulse/. Copy the issuer from your provider’s discovery document or application page, not from memory. The issuer URL can’t contain a query, a fragment or user information.
Test and Verify Sign-In
Link to this section: Test and Verify Sign-InPress Test in the card’s header. Elsewhere this step is called Verify Sign-In. It runs a real sign-in through your identity provider in a pop-up window:
- A pop-up window opens and shows Testing OpenID Connect…. If your browser blocks pop-ups, allow them for DownloadPulse.
- The window moves on to your provider. Sign in there as yourself.
- The provider sends you back to the callback URL. DownloadPulse validates the response and applies your Access Control rules.
- The window shows OIDC verification complete and closes itself. DownloadPulse reports OIDC verification successful — provider sign-in and authorization completed.
If you close the window early, DownloadPulse reports OIDC verification did not complete — the verification window was closed. If the provider sign-in or the authorization fails, you see OIDC verification failed.
What a successful Test does:
- It saves the tested OIDC configuration and turns OpenID Connect on.
- It marks the configuration Verified. The card’s status shows Verified, and OIDC State in Authentication Status shows Enabled without (Untested). Verified means that this exact security-critical configuration completed a real sign-in. Change the issuer, client, secret, scopes, base URL, group claim or access rules, and the configuration counts as untested again.
- It links the identity you just proved to your own Admin account, so you can sign in as that Admin through OIDC from now on. This is the only way an Admin gets an OIDC sign-in, because OIDC never creates or promotes an Admin. If the identity already belongs to another account, that account must itself be an active Admin, or the verification is refused.
- It ends existing OIDC browser sessions, and signs this browser in through OIDC as your account.
Test checks the configuration that is stored, so make your changes and leave each field before you press it. The client secret never travels to the browser: the test uses the stored one. A proposed configuration waits for its proof for 10 minutes. After that, press Test again.
The safe bootstrap order
Link to this section: The safe bootstrap orderFollow this order the first time you set up OIDC:
- Turn on Username & Password, alongside the proposed OIDC settings.
- Save the configuration, and sign in with your new local password.
- Press Test, and complete the real provider flow through the externally reachable HTTPS address.
- Confirm that normal OIDC sign-in works: sign out, and use Sign in with your provider on the sign-in page.
- Only then, if you want OIDC-only operation, turn off Username & Password.
DownloadPulse enforces this order. It refuses to make OIDC the first and only sign-in method of an open installation. It also refuses to turn off the password until a real OIDC sign-in has completed. A discovery check or a configuration-only test isn’t enough.
Tip: Run step 3 through the real public address and the real provider. DownloadPulse’s own tests can’t prove your DNS, TLS certificate, reverse proxy or provider setup. Keep the password fallback until you have signed in through OIDC for real.
Running on OpenID Connect alone
Link to this section: Running on OpenID Connect aloneTo switch off Enable Username & Password while OIDC stays on, you must be signed in through OIDC in that browser, and the OIDC settings must be the ones that were proven. If you’re signed in with a password, or have changed a critical OIDC field since the last successful Test, the change is refused.
While OIDC is the only method, the working configuration stays authoritative. DownloadPulse won’t save a change to a security-critical field directly: the proposed settings are staged, and they replace the working ones only after they complete a successful sign-in themselves. A proposal goes stale if another authentication change is saved while it’s being verified, and then it has to be verified again.
The practical way to change OIDC settings while running OIDC-only:
- Switch on Enable Username & Password to restore a fallback. A stored password that was only disabled still works.
- Edit the OpenID Connect fields.
- Press Test and complete the sign-in.
- Switch off Enable Username & Password again.
Integration-token automation keeps working throughout. HTTP Basic doesn’t work while Username & Password is off.
What people see when they sign in
Link to this section: What people see when they sign inWith OIDC on, the sign-in page shows a Sign in with button followed by your Provider Name, for example Sign in with Authentik. When Username & Password is also on, the provider button comes first, followed by or continue with user name and password. The page explains that OpenID Connect requires a canonical HTTPS external URL.
After a successful provider sign-in, the person lands in DownloadPulse with a normal browser session, which lasts for the Browser Session Lifetime.
Accounts created by OIDC
Link to this section: Accounts created by OIDCEvery OIDC sign-in resolves to one DownloadPulse account. An identity is the pair of the provider’s issuer and subject. An email address or a username never identifies anyone.
- First sign-in: an identity that your Access Control admits and that isn’t linked to an account yet gets a new account with the Default Role for New OIDC Users.
- Username: the new account’s DownloadPulse username comes from the provider’s
preferred_usernameclaim, thennickname, thenname, thenemail. If another account already holds that name, DownloadPulse picks the first free variant:name-2,name-3, and so on. Later sign-ins never change it, though an Admin can in Edit User. - Profile: the display name, actual name and email are filled from the provider’s claims. A later sign-in only fills in what the account still lacks, and never overwrites a name the person chose. An email that came from the provider is shown read-only in My Account.
- Email never links. A new identity always gets its own account, even if its email matches an existing account. Users & Access points out accounts that share a verified email, but only an Admin’s Merge joins them.
- Linking more identities to one account: if a person ends up with two accounts, for example a local account and a new OIDC account, an Admin uses Merge in Settings › Users & Access. The OIDC identities move to the account that remains. See Users and roles.
- Disabled accounts: a disabled account’s identity keeps resolving to that account and can’t sign in.
- Removed accounts: if an Admin removed the account and the same identity signs in again, it gets a new account that stays disabled until an Admin enables it.
To make an OIDC person an Admin, change their role in Users & Access after their first sign-in.
Troubleshooting
Link to this section: Troubleshooting| Symptom | What to check |
|---|---|
| OpenID Connect sign-in could not be validated or authorized. | The identity didn’t pass validation or your Access Control rules. Check the lists: the person must match every filled-in list, and with every list empty, nobody is admitted. |
| Issuer mismatch, or discovery fails | Copy Issuer URL exactly from the provider, trailing / included or excluded exactly as published. The discovery document must name the same issuer. The issuer must use HTTPS. |
| The provider reports a redirect/callback URI mismatch | Copy OIDC Callback URL from the card into the provider exactly. Check that Public DownloadPulse Base URL (or PUBLIC_BASE_URL) is the real HTTPS address, with no path, and that your proxy doesn’t rewrite /auth/oidc/callback. |
| OIDC provider requires client authentication | The client is confidential, so enter its Client Secret. |
| An email allow list admits nobody | Allowed Emails needs email_verified: true from the provider. If that claim is missing from the ID token, DownloadPulse can complete it from the provider’s UserInfo endpoint. If your provider never sends a verified-email claim, use Allowed Subjects or Allowed Groups instead. |
| A group allow list admits nobody | Check Group Claim against the claim your provider really sends, and that the groups scope or mapping is configured at the provider. |
| OpenID Connect is enabled but its local configuration is incomplete or invalid. | A required field is missing or invalid, such as the issuer, client ID or base URL. |
| OIDC verification could not start because the verification window was blocked by the browser. | Allow pop-ups for DownloadPulse and press Test again. |
| Too many OpenID Connect sign-in attempts have been started. Try again shortly. | Wait a moment before retrying. |
| HTTPS required | OIDC needs both an HTTPS public base URL and an HTTPS issuer. Plain HTTP works only for password-only setups. |
If no Admin can sign in any more, see Recovering access.