Repository navigation
integration_oidc 0.1.11
This is a security-focused release that hardens provider configuration, OIDC authorization, token validation, connection ownership, and credential handling. Thanks to Ernest Ademi from sekura.se for bringing this to our attention.
Important upgrade actions
After deploying this release:
- Run the Nextcloud database upgrade.
- Edit and save every configured OIDC provider with its exact issuer URL.
- Rotate all provider client secrets after the upgrade is deployed.
- Ask users to reauthorize their existing linked accounts.
- If debug logging was previously enabled, treat historical logs as potentially containing tokens and follow your credential-revocation and log-retention procedures.
Existing authorization transactions are invalidated during migration. Existing connections are preserved but marked for reauthorization.
Security fixes
- Prevent provider client secrets from being returned by user-facing API endpoints.
- Make client secrets write-only after initial configuration.
- Remove sensitive provider and token responses from application logs.
- Generate authorization state and nonce values on the server.
- Bind authorization transactions to the authenticated user.
- Store only state and nonce hashes.
- Enforce a ten-minute transaction lifetime and one-time state consumption.
- Cryptographically validate ID-token signatures using trusted JWKS.
- Validate issuer, subject, audience, authorized party, expiration, issue time, and nonce claims.
- Restrict ID tokens to RS256 with validated RSA signing keys.
- Use Nextcloud’s protected HTTP client for discovery, token, JWKS, refresh, and revocation requests.
- Require HTTPS endpoints and disable redirects.
- Fix cross-user connection deletion through connection-ID guessing.
- Retain local connections when remote token revocation fails unless removal is explicitly confirmed.
Provider hardening
Providers are now configured from their exact OIDC issuer and validated through standard discovery metadata.
Providers must advertise:
- Authorization code flow
- RS256 ID-token signing
client_secret_basicorclient_secret_postauthentication- A scope containing
openid
Security-sensitive provider changes invalidate pending authorizations and require affected users to reauthorize.
Provider deletion is blocked while linked connections still exist.
Token refresh reliability
- Prevent parallel refresh-job execution.
- Add optimistic locking to avoid concurrent refresh-token overwrite.
- Enforce one active connection per user and provider.
- Preserve older duplicate connections as archived records for explicit cleanup.
- Skip refreshes when the provider configuration has changed.
Interface changes
- Add issuer configuration and discovery.
- Show whether a provider has a client secret without returning its value.
- Leave the secret field blank while editing to preserve the existing secret.
- Force authorization code flow.
- Remove sensitive browser console logging.
- Prompt before forced local removal after failed remote revocation.
Full Changelog: v0.1.10...v0.1.11