How Keycloak token exchange replaces two-way OAuth between Nextcloud and OpenProject
OpenProject supports OpenID Connect SSO to Nextcloud through Keycloak token exchange or through wide-access tokens, and this is an Enterprise add-on available in the Corporate plan. If your teams link Nextcloud files to work packages today, each system probably holds its own OAuth storage configuration and users sign in to each one separately. With shared OpenID Connect SSO, both systems trust the same identity provider, so a user signs in once at that provider and the storage connection no longer depends on a separate consent flow in each application.
Before you plan the change, confirm that every user already has an account in both Nextcloud and OpenProject and that both systems sign in through the same identity provider. The identity provider must issue RFC 9068 JWT access tokens and support OAuth 2.0 Token Exchange (RFC 8693), or be able to issue tokens with the needed audience at login. Keycloak and Nextcloud Hub are the supported providers. With Keycloak, token exchange is the preferred route because it yields narrower tokens, and the setup relies on the api_v3 and add-nextcloud-audience client scopes plus Standard Token Exchange on the Nextcloud client. Check these details against the OpenProject guide for Nextcloud OIDC SSO before you commit to a design.
Existing two-way OAuth 2.0 storages can move to SSO, but the change is not trivial to undo. Reverting to the previous storage setup needs reconfiguration on the OpenProject side and new user consent, so users will be asked to approve the connection again. Decide before cutover whether you accept that cost as a rollback path, and plan a test with a small group of users first so you can measure how many consent prompts and support requests the switch creates.
What you need before configuring SSO between Nextcloud and OpenProject
Shared OpenID Connect sign-in between Nextcloud and OpenProject depends on four things lining up: the licence tier, the identity provider's token behavior, the versions of each product, and the network path between them. Confirm each item in your own environment before you touch client settings, because a gap in any one of them usually surfaces as a login or token error late in the project.
Corporate plan on the OpenProject side
OpenID Connect SSO between OpenProject and Nextcloud is an Enterprise add-on that sits in the Corporate plan. Community and lower Enterprise tiers cannot use this setup, so the two-way OAuth storage remains the only option there. Ask your OpenProject contact to confirm in writing that the Corporate plan covers this add-on for your user count, and check whether pricing is handled on request for your size. Your Nextcloud tier is a separate decision.
OpenProject pricingKeycloak with RFC 9068 tokens
The identity provider must issue RFC 9068 JWT access tokens and support OAuth 2.0 Token Exchange (RFC 8693), or issue tokens with the needed audience at login. Keycloak is a supported provider, and token exchange is the preferred route because it yields narrower tokens. Confirm that the Keycloak version you run issues JWT access tokens for the client you plan to create, and test a token's audience before wiring up either application.
Keycloak server admin guideCurrent Nextcloud release and its stack
Plan around Nextcloud 35, released on 16 September 2026, which recommends MariaDB 11.8 or PostgreSQL 18 and PHP 8.5, with 8.3 and 8.4 still supported. Nextcloud 35 is supported until September 2027, while 34 and 33 have earlier end dates. Confirm the release you will deploy, its web server (Apache 2.4 or nginx with php-fpm), and the database version against the system requirements for that release before installation.
Nextcloud system requirementsPostgreSQL 16 or later for OpenProject
OpenProject officially supports PostgreSQL 16 or later and requires the pg_trgm, btree_gist and unaccent extensions. Check that your database server provides these extensions before installation and that the database role can create them. Confirm the OpenProject release you plan to run against its own system requirements page, since database support is tied to specific releases.
OpenProject system requirementsExisting accounts in both systems
Users must sign in to both applications through the same identity provider and must already have accounts in both. The OIDC subject and the username or email claim must match across Nextcloud and OpenProject, or users will land in duplicate accounts. Before you enable SSO, export the user lists from each system, compare how identifiers are stored, and decide how existing two-way OAuth users will be mapped.
Network and certificate paths
Three services need to reach each other: browsers reach Keycloak, Nextcloud and OpenProject, and the Nextcloud and OpenProject servers reach Keycloak's token and discovery endpoints. Each path needs a DNS name, a certificate that the servers trust, and no proxy rule that blocks the back-channel calls. Test discovery endpoint access from both application hosts, and confirm that the issuer URL in each configuration matches the issuer Keycloak publishes exactly.
Choosing between token exchange and wide-access tokens
With token exchange, the user signs in once and OpenProject's client receives a token for its own audience. When OpenProject needs to call Nextcloud on the user's behalf, the Nextcloud client exchanges that token for one scoped to Nextcloud. The OpenProject documentation prefers this path for Keycloak because each token carries only the audience it needs. The setup uses the api_v3 and add-nextcloud-audience client scopes and Standard Token Exchange enabled on the Nextcloud client.
- Narrower tokens: Each exchanged token is limited to the audience and scopes of the target service, which reduces what a leaked token can reach.
- Explicit client configuration: Token exchange is set per client, so reviewers can see which client may exchange tokens and for which audience.
- More moving parts: The realm needs the correct client scopes, mappers and the Standard Token Exchange setting on the Nextcloud client before login works.
- Keycloak version dependency: Confirm that the Keycloak release you run supports the token exchange feature set you configure, and test it on your version before production.
- Repeatable verification: Decode a sample token before and after exchange to confirm the audience and scopes match what your design expects.
Before choosing this path, confirm that your Keycloak administrators can maintain client scopes and exchange permissions across upgrades.
With wide-access tokens, Keycloak issues the token at login with the Nextcloud audience already included, so no exchange step is needed at runtime. This keeps the flow simpler to build and debug, and it can suit a small realm where few clients share the same users. The trade-off is that one token can then reach more than one service, so its scope is broader than the token exchange path produces.
- Simpler runtime flow: The application receives a usable token at login and calls the target service directly.
- Broader token reach: A token issued with the Nextcloud audience may be accepted by Nextcloud for as long as it is valid, so token lifetime and scope settings matter more.
- Shorter initial setup: Fewer client scopes and no exchange permissions to maintain at the start of the project.
- Login-time configuration: The audience must be added when tokens are issued, so changes to audience rules affect every user at their next sign-in.
- Review trigger: If the realm later hosts more clients that share users, revisit this choice before adding them.
Confirm with your security team whether a broader audience is acceptable under your access policy, and check the current OpenProject documentation before relying on this path.
The right path depends less on the protocol mechanics than on how your organization runs its identity service. Ask how many clients share the realm, since each additional client increases the value of narrow audiences. Ask who administers Keycloak and whether that team can maintain exchange permissions, client scopes and upgrade reviews without breaking the Nextcloud link. Ask how tokens must be scoped for your auditors and for your data handling rules.
- Clients in the realm: A shared realm with many applications favors narrower tokens to limit cross-service reach.
- Administrator ownership: If a separate platform team owns Keycloak, agree on who changes client scopes and who approves the exchange configuration.
- Scope review requirements: Document which audiences each token may carry and how that is reviewed.
- Change frequency: Frequent realm changes raise the maintenance cost of the exchange path.
- Reversibility: Moving between the two paths later can require reconfiguration and new user consent, so decide before go-live.
Record the chosen path, the owners and the token review steps in your design document before configuring either side.
Whichever path you choose, the audience and scope of every token should be verifiable. OpenProject expects an identity provider that issues RFC 9068 JWT access tokens, and the design should confirm which audience each token carries at each hop. Test with real user accounts that already exist in both OpenProject and Nextcloud, since the setup requires users to sign in through the same identity provider.
- Token inspection: Decode test tokens at each step and record the
aud, scope and expiry values. - Negative tests: Confirm that a token issued for one service is rejected by another service that it should not reach.
- Refresh behavior: Check how refresh tokens are issued and revoked, and how long sessions last in each application.
- Reconfiguration test: Rehearse moving from one path to the other in a test realm to measure the consent and reconfiguration steps.
- Documented baseline: Keep the expected claim values in a versioned file so that later Keycloak upgrades can be compared against them.
Confirm these steps with the OpenProject Nextcloud OIDC documentation and your Keycloak version before sign-off.
How to configure Keycloak, Nextcloud user_oidc and OpenProject step by step
This sequence connects Keycloak, the Nextcloud user_oidc app and OpenProject so one identity provider signs users into both systems and Nextcloud can obtain OpenProject access through token exchange. Each step ends with a check you can run before moving on. Confirm exact menu names and field labels against the current OpenProject and Nextcloud documentation for your versions.
Prepare the Keycloak realm and users
The identity team selects or creates a Keycloak realm for the organization and confirms that every person who needs both Nextcloud and OpenProject has an account in that realm. The SSO setup requires users to already have accounts in both applications, so match usernames or email addresses to the existing accounts in each system before you start. Keep at least one test user per user group for the sign-in check in the final step. Done when a test user signs in to Keycloak with a password you have confirmed, and the email address matches the one stored in Nextcloud and OpenProject.
Create the OpenProject and Nextcloud clients
The Keycloak administrator creates one OpenID Connect client for OpenProject and one for Nextcloud. Set redirect URIs to the production hostnames users type into their browsers, and use a confidential client where the application holds a secret. Store generated client secrets in your secrets manager and keep them out of shared notes. Confirm the redirect URI format in each product's OIDC documentation. Done when both clients appear in the realm and the redirect URIs match the hostnames exactly.
Add the api_v3 and add-nextcloud-audience scopes
Create the api_v3 and add-nextcloud-audience client scopes in the realm and attach them to the clients the OpenProject OIDC guide specifies. These scopes add the audience values that let a token for Nextcloud be exchanged for an OpenProject API token. Confirm which client each scope attaches to before you assign it. Done when each client's assigned scopes list shows the expected scopes, and a test token contains the audience values you configured in the next verification.
Enable Standard Token Exchange on the Nextcloud client
In Keycloak, turn on Standard Token Exchange, the RFC 8693 flow, for the Nextcloud client only. Token exchange is the preferred route because it yields narrower tokens than wide-access tokens issued at login. Check that the feature is available on the Keycloak version you run, since the Keycloak documentation covers version-specific behavior. Done when a test user's token, exchanged through the Nextcloud client, returns an access token for the OpenProject audience.
Configure the Nextcloud user_oidc settings
A Nextcloud administrator installs the user_oidc app and adds Keycloak as the provider, using the realm discovery URL, the Nextcloud client ID and the client secret from the vault. Set the attribute that maps to the Nextcloud username so it matches accounts that already exist in Nextcloud. Confirm the exact field names in the user_oidc documentation for your Nextcloud version. Done when a test user signs out, signs in through Keycloak, and lands in the existing Nextcloud account with no duplicate account created.
Enable OpenID Connect storage in OpenProject
An OpenProject administrator on the Corporate plan, which includes the OpenID Connect SSO add-on for Nextcloud, adds Nextcloud as a file storage and selects OpenID Connect as the authentication method. Enter the Keycloak details for the token exchange. Existing two-way OAuth storages can move to SSO, but reverting later needs reconfiguration and new user consent, so record the current storage settings first. Done when a test user opens a work package with a linked Nextcloud folder and the files load without an unexpected consent prompt.
Test sign-in and decode the access token
Test with one user from each group that will use the integration, starting from a clean browser session. Sign in to Nextcloud, open linked files from OpenProject, and confirm access works. In a non-production environment, decode the JWT access token issued for the exchange and check that its type header is at+jwt, as RFC 9068 describes, that the issuer matches your realm, and that the aud claim includes the OpenProject API audience. Do not paste production tokens into online decoders. Done when every test user passes and the token claims match your configuration.
Mapping identity claims, users and tokens between Keycloak, Nextcloud and OpenProject
This table maps the identity elements a Keycloak token carries to the Nextcloud user_oidc and OpenProject user fields that consume them, and notes what happens to existing two-way OAuth accounts. Read each row as a check to run in your own environment before go-live, because exact claim names depend on your Keycloak client scopes and mappers. The main takeaway is that the audience and the subject identifier decide whether a token is accepted and whether an existing user is matched.
| Element | Keycloak source | Nextcloud and OpenProject handling | What to confirm |
|---|---|---|---|
| User identifier (subject) | The sub claim, a stable identifier for the Keycloak user | Used to link the SSO login to an existing account when the provider and identifier match | Confirm which claim each side uses to match users and that it never changes for a person |
| Username | Typically preferred_username, set from the Keycloak user name | Can become the Nextcloud login name in user_oidc depending on attribute mapping | Confirm the claim name and whether usernames in Nextcloud and OpenProject must match exactly |
| Email address | The email claim, present when the email scope is requested and the user has an address | Used to match or create accounts and to notify users, and duplicates cause mismatched logins | Confirm that each user has one verified email in Keycloak and that the claim is included in the token |
| Access token audience | The aud claim, which must include the audience for each target through api_v3 and add-nextcloud-audience scopes | Each service should accept only tokens issued for it, so a missing audience causes rejected requests | Decode a test token and confirm both audiences appear as expected, following the OpenProject SSO guidance |
| Token format | RFC 9068 JWT access tokens issued by the realm | OpenProject needs JWT access tokens to validate the audience, so opaque tokens do not work | Confirm the realm issues JWT access tokens for the clients involved |
| Refresh tokens | Issued at login according to the client settings and session lifetimes | Governs how long a user stays signed in to Nextcloud and OpenProject without a new login | Confirm idle and maximum session lengths and whether they match your access policy |
| Existing two-way OAuth users | Accounts that already consented through the OAuth 2.0 storage flow | Existing storages can move to SSO, and users must be matched to the same identity and consent again | Confirm the matching rule with a pilot group and plan the consent message for users |
| Reverting to two-way OAuth | Not a claim, but a configuration change in both systems | Reverting needs reconfiguration and new user consent, so it is not an instant rollback | Document the reversal steps and test them before the production cutover |
| Admin and group roles | Group or role claims, if you add a mapper for them | Not required for the basic login path, and role mapping must be set up separately in each application | Decide whether roles are managed in Keycloak or in each application before you add mappers |
How a sign-in and token exchange move through the three systems
When a user opens a Nextcloud file linked to an OpenProject work package, the browser session starts at Keycloak, not at either application. The user signs in once to Keycloak, which issues tokens for the Nextcloud client. Nextcloud then presents that access token to Keycloak's token endpoint and asks, through OAuth 2.0 Token Exchange (RFC 8693) on the Nextcloud client, for a new token whose audience includes OpenProject. The exchanged token is an RFC 9068 JWT access token scoped by the api_v3 and add-nextcloud-audience client scopes, so OpenProject receives a token that names it as the audience and nothing broader. Confirm with your Keycloak administrator that Standard Token Exchange is enabled on the Nextcloud client and that both client scopes are assigned, because a missing scope is the most common reason the exchange silently returns a token OpenProject will reject.
The flow depends on two capabilities of the identity provider, and you should verify both before any build work. The provider must issue RFC 9068 JWT access tokens, and it must either support token exchange or issue tokens with the required audience at login. Keycloak and Nextcloud Hub are the supported providers in the OpenProject documentation, so check your exact Keycloak release against the OpenProject Nextcloud OIDC SSO documentation rather than assuming a version works. If your provider issues opaque tokens or cannot exchange tokens, the audience problem has no clean fix and the design has to change before rollout.
Session lifetime is set by refresh tokens and Keycloak realm settings, not by the application. Access tokens are short-lived, so Nextcloud and OpenProject depend on refresh tokens to keep a session alive, and each refresh re-runs the exchange for the target audience. Decide the access token lifespan, the SSO session idle and maximum times, and whether refresh tokens rotate, and write those values down with the security team. Shorter lifetimes reduce exposure of a stolen token but generate more token requests against Keycloak. Test a deliberate logout from Keycloak, then confirm that both Nextcloud and OpenProject stop accepting the old tokens within the window you chose. Revoking an existing two-way OAuth storage follows a different path, and reverting to it requires reconfiguration and new user consent.
How the parts connect in the shared SSO design
The login starts in the browser, where the user signs in once to Keycloak, the identity provider in the realm both applications trust. Nextcloud, using the user_oidc app, holds the session and asks Keycloak for a token exchange so that OpenProject receives a token with the audience it needs. Each hand-off crosses a trust boundary, so check which client, audience and scope each application accepts, and confirm that the token format is RFC 9068 JWT access tokens before go-live.
Shared Keycloak login feeding Nextcloud and OpenProject through token exchange.
Hardening the Keycloak clients, tokens and admin access
The SSO flow between Nextcloud and OpenProject is only as strong as the Keycloak realm behind it. The cards below cover the client, token and administrator controls that decide who can obtain tokens for each application and how long those tokens remain useful. Work through them together before the first user signs in.
Client secret storage
Each confidential client, including the Nextcloud and OpenProject clients, authenticates to Keycloak with a secret. Store that secret in a secrets manager or a Kubernetes secret, not in a shared configuration file or a ticket. Rotate it when staff with access change, and confirm how each application reads it so the rotation does not break sign-in during a maintenance window.
Restricting redirect URIs
Keycloak only returns authorization codes to redirect URIs registered on the client. Register the exact callback paths for each Nextcloud and OpenProject hostname and avoid wildcards that match other paths or hosts. Check each client after a hostname change, because a stale or broad entry is an easy way for a sign-in response to reach an unintended location.
Limiting audiences and scopes
The token exchange design depends on the api_v3 and add-nextcloud-audience client scopes. Assign only those scopes to the clients that need them, and confirm that the access token carries the audience each application expects. Remove default scopes that add claims or roles the applications do not use, so a token issued for one service cannot be replayed against another.
Refresh token lifetime
Refresh tokens let Nextcloud and OpenProject keep sessions alive without a new login. Set the realm's session and refresh token lifetimes to values your security policy allows, and decide whether idle time or absolute time governs re-authentication. Test a revoked user, because a disabled account should stop receiving new tokens even while an older refresh token still exists.
Admin console access and MFA
The Keycloak admin console can change every client and user in the realm, so it deserves a separate control set. Limit console access to a small administrator group, bind those accounts to a stronger authentication flow with multi-factor authentication, and keep break-glass access documented and tested. Confirm how administrator sessions are logged and who reviews those logs.
Production configuration guidance
Keycloak's production guide sets out the settings that differ from the development defaults, including hostname, TLS and proxy handling. Follow it before exposing the realm to users, and confirm that the production mode settings match the reverse proxy in front of Keycloak. Record the version you deploy, since the release notes and upgrade guide describe changes you must review before each update.
Keycloak production guideHow to test the SSO and keep it running after upgrades
What should we test first when OpenProject and Nextcloud share Keycloak SSO?
Start with a first sign-in test for a user who already has accounts in both systems, using one identity provider login for each. Confirm that Nextcloud and OpenProject both accept the Keycloak session without a second consent screen, that the user lands on the correct account in each system, and that the tokens carry the audiences the setup expects. The configuration uses the api_v3 and add-nextcloud-audience client scopes with Standard Token Exchange on the Nextcloud client, so check that both scopes are attached and that token exchange is enabled. Repeat the test for a user who exists in only one system, because the SSO flow assumes accounts in both.
How do we confirm that disabling a user in Keycloak cuts off access to both systems?
Disable a test user in Keycloak, then try to open a new session in OpenProject and Nextcloud and try to refresh an existing session. Expect the new sign-in to fail in both systems. Access tokens that are already issued stay valid until they expire, so measure how long an open session keeps working and decide whether that window is acceptable for your risk appetite. Run the same check with a deleted user and with a user whose session was revoked in the Keycloak admin console. Record the results, because an auditor or security reviewer will ask how fast access is removed.
What happens when a refresh token expires, and how do we test it?
When a refresh token expires or is revoked, the connected system cannot obtain new access tokens silently, and the user must sign in through Keycloak again. Test this by shortening the refresh token lifetime in a non-production realm, waiting for expiry, and then opening both applications. Check that each system asks for a fresh sign-in rather than showing an error or stale data. Confirm the lifetime values you choose against your Keycloak session policy and the OpenProject and Nextcloud documentation, because these settings differ by deployment and should not be copied from a sample.
Can we move back from SSO to two-way OAuth if the setup fails?
Yes, but the OpenProject documentation says reverting needs reconfiguration and new user consent. Before you switch to SSO, record the current OAuth storage settings, client IDs and the list of users connected through them. To test the rollback, change the storage back to two-way OAuth in a staging environment, then have a test user approve the consent screen again. Confirm that file links and project folders still resolve after the change. Treat the rollback as a planned change with its own test, not as an instant undo.
What should we check after a Keycloak upgrade?
After each Keycloak upgrade, repeat the first sign-in test, the disabled user test and a token audience check on both integrations. Keycloak documents that breaking changes in minor releases are opt-in, so review the upgrading guide and the backwards compatibility notes for each target version before you start. If you run the Keycloak Operator, the documentation strongly recommends manual approval mode for operator updates, which keeps upgrades under your control and gives you a window to test. Also confirm that the database schema migration completed, since Keycloak applies it at startup by default unless you run it manually.
How do we upgrade Nextcloud without breaking the OpenProject connection?
Nextcloud does not allow skipping major releases, so you must move one major version at a time, taking a backup before every step. Disable third-party apps until each is confirmed compatible with the target version, including the user_oidc app that handles the OpenID Connect login. After each step, repeat the sign-in test from both directions and confirm that the OpenProject storage connection still authenticates. Nextcloud supports each major version for one year through monthly maintenance releases, so plan the path against the current release schedule and allow time for each step in your test environment.
What should we check after an OpenProject upgrade?
After an OpenProject upgrade, confirm that the OpenID Connect provider settings, the Nextcloud storage connection and the Enterprise license still apply, then repeat the first sign-in and token exchange tests. OpenProject publishes a new release regularly, so read the release notes for changes to authentication, storage or database requirements before you upgrade. Keep a test case list that you run every time, so that a regression in SSO is caught in staging rather than by users on Monday morning.
Who should own this testing and monitoring after go-live?
Assign ownership to a named team, usually platform or identity engineering, with security and the application owners involved in sign-off. The internal team carries the recurring work: running the test cases after each change, reviewing Keycloak metrics for failed logins and token errors, and tracking the Nextcloud and OpenProject release schedules. DeployOpen can plan this work, write the test runbook and run the tests as a fixed-scope engagement, or provide ongoing support and upgrade testing as a retainer. Ask any partner to state in writing which tests run, how often, and who receives the results.
Why Nextcloud and OpenProject SSO fails and how to fix it
This table lists the failures teams most often hit when wiring Nextcloud and OpenProject to a shared Keycloak realm, with the likely cause and the fix for each. Read it as a checklist to work through before you escalate, starting with the plan and client settings, then the token contents and the user accounts.
| Failure | Likely cause | Fix |
|---|---|---|
| Option missing in OpenProject admin settings | The OpenProject instance is on Community, Basic, Professional or Premium, and OIDC SSO for Nextcloud is an Enterprise add-on in the Corporate plan | Confirm the plan with OpenProject before design work. Move to Corporate or keep two-way OAuth 2.0 storage. |
| Token rejected by OpenProject or Nextcloud | The access token audience does not include the target system, often because the api_v3 or add-nextcloud-audience client scope is not assigned | Assign both client scopes on the correct clients, then decode a test token and confirm the audience claim lists each service. |
| Token exchange request fails | Standard Token Exchange is not enabled on the Nextcloud client in Keycloak | Enable Standard Token Exchange on the Nextcloud client and confirm the OpenProject client is allowed to request the exchange. |
| Token issued is not a JWT | The identity provider is issuing opaque or non-RFC 9068 access tokens | Check the token format on the Keycloak client and confirm it matches RFC 9068 before testing the storage connection. |
| Sign-in succeeds in one system but the user is absent in the other | The user has no account in Nextcloud or OpenProject, and the setup assumes both systems already hold the same person | Provision each user in both systems before rollout, through LDAP, SCIM or manual creation, and match identifiers such as email or username. |
| Redirect URI mismatch error at login | The valid redirect URIs in the Keycloak client do not match the exact public URLs of OpenProject or Nextcloud, including scheme, host and path | Copy the callback URLs from the OpenProject and Nextcloud admin pages into the Keycloak client and remove stale entries. |
| Tokens expire or sessions drop unexpectedly | Refresh tokens are not issued or the server clocks are out of step, so token lifetimes are judged wrong | Check that refresh tokens are issued for the clients, then synchronize time on Keycloak, OpenProject and Nextcloud hosts using NTP. |
| TLS or certificate errors on token calls | The Nextcloud or OpenProject server does not trust the certificate authority that signed the Keycloak endpoint | Install the internal CA in each server trust store and retest the discovery and token endpoints from each host. |
| Existing storage still uses old OAuth | The two-way OAuth 2.0 storage was not moved to SSO, so users still consent to the old flow | Reconfigure the storage for SSO. Plan new user consent, since reverting also needs reconfiguration and fresh consent. |
What SSO between Nextcloud and OpenProject costs and takes
Does OpenID Connect SSO between Nextcloud and OpenProject require a paid plan?
Yes. OpenID Connect SSO between OpenProject and Nextcloud is an Enterprise add-on that sits in the Corporate plan. The Community edition does not include it, so the OpenProject side of the work needs a Corporate subscription before the SSO configuration can be used. OpenProject lists Corporate pricing on request for 250 or more users, so the subscription cost follows from your user count and the written quote. Ask the vendor to confirm in writing that the Corporate plan covers the Nextcloud OIDC storage feature at your user count.
What does OpenProject Enterprise cost per user, and which tiers apply?
OpenProject Enterprise on-premises is priced per named user per month. Basic is listed at 5.95 euros and Professional at 10.95 euros, with a 25-user minimum. Premium is listed at 15.95 euros with a 100-user minimum, and Corporate is quoted on request for 250 or more users. Single sign-on is listed among the Enterprise features, but the Nextcloud OIDC storage path is documented under the Corporate plan, so confirm which tier your user count and feature set require before budgeting. These list prices come from OpenProject's pricing page and may change.
Do we need Nextcloud Enterprise to run SSO with Keycloak?
Not necessarily. Nextcloud Server is open source under AGPL-3.0, and the SSO work depends on the user_oidc configuration and your identity provider, not on a paid Nextcloud subscription. Nextcloud Enterprise is a separate paid offering aimed at enterprise, public sector and education users. It is sold in Standard, Premium and Ultimate tiers with a 100-user minimum, with list prices starting at 71.29, 104.99 and 204.75 euros per user per year for 100 or more users. Buy it if you need vendor maintenance, extended support hours or response times, and check the current pricing page before relying on these figures.
Can our own team set up Nextcloud and OpenProject SSO without a partner?
Often yes, if your team already runs Keycloak and both applications, and has an Enterprise subscription for OpenProject. The work touches the Keycloak client and client scopes, token exchange settings, the Nextcloud user_oidc app and OpenProject's storage configuration, plus testing of consent and token lifetimes. Teams without recent Keycloak administration, or without a tested rollback plan, usually gain the most from an outside implementation partner. DeployOpen plans, implements, documents and supports these setups inside your infrastructure under a written, fixed scope, so you can compare an internal build with a scoped partner engagement.
What makes SSO between Nextcloud and OpenProject cost more or take longer?
The main drivers are the number of users, how mature your Keycloak setup already is, and how many custom claims you need. More users raise the OpenProject subscription tier and increase the testing of consent, sign-in and access rights. A Keycloak realm with existing clients, scopes, and well-maintained user attributes shortens the work. Custom claims that must map to Nextcloud groups or OpenProject roles add design and test cycles. Existing two-way OAuth storages also need migration planning, because moving them to SSO and reverting both require reconfiguration and new user consent.
What do we need to provide before SSO work can start?
Plan to provide a working Keycloak instance or a decision to deploy one, administrative access to create clients, client scopes and token exchange settings, and administrative access to both Nextcloud and OpenProject. Users must already have accounts in both applications and sign in through the same identity provider. You should also supply an inventory of current OAuth storages, a list of user groups and roles to map, and a test environment that mirrors production. Confirm with your security team how token lifetimes, refresh tokens and audit logging should be configured before the scope is written.
How long does Nextcloud and OpenProject SSO take to set up?
The duration depends on scope, so it should be confirmed in a written plan rather than assumed. The schedule depends on the user count, the state of your Keycloak environment, the number of custom claims, the number of storages to migrate, and how much testing your compliance and security teams require. Ask any partner for a phased timeline with named milestones, including test sign-off, a rollback rehearsal and a consent verification step. Your own team should estimate effort the same way, starting from a supported test environment.
How DeployOpen scopes, builds and supports this integration
DeployOpen approaches Nextcloud and OpenProject SSO with Keycloak token exchange as a fixed-scope engagement inside your own infrastructure. The work covers the identity setup, the Nextcloud and OpenProject configuration, testing of the login and token paths, and a handover your team can operate.
How we scope
- Agree in writing which Keycloak realm, Nextcloud and OpenProject instances, and user populations the SSO work covers
- Confirm the OpenProject Corporate plan requirement and the Nextcloud user_oidc app version before work starts
- Record whether you will use Keycloak token exchange or wide-access tokens, and why, in the written scope
How we build
- Configure the api_v3 and add-nextcloud-audience client scopes and Standard Token Exchange on the Nextcloud client in Keycloak
- Set the Nextcloud user_oidc settings and the OpenProject OIDC storage configuration, then test sign-in with accounts that exist in both systems
- Test that issued access tokens are RFC 9068 JWT tokens with the expected audience, and that refresh tokens behave as designed
How we hand over
- Deliver a written record of client settings, scopes, mappings and the token exchange flow for your identity and platform teams
- Walk through the steps to migrate an existing two-way OAuth storage to SSO and the reconfiguration needed to revert
- Document the Keycloak and Nextcloud upgrade checks that affect this integration, so your team can run them
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after the fixed-scope work ends
- Retesting of the SSO path can follow Keycloak and Nextcloud upgrades, including one major Nextcloud version at a time
- Support requests are handled against the written scope, with changes to scope agreed in writing before work starts

