Flowable SSO and identity integration

How to connect Flowable's engines and REST API to your identity provider, map directory groups to candidate users and tasks, and verify access before go-live.

On this page

Flowable SSO and identity integration: what it involves and why it is harder than it looks

A Java team running Flowable engines usually needs two things before go-live: people signing in with their corporate credentials, and REST calls that only reach the process data they are allowed to see. These are separate problems. Flowable keeps identity management (IDM) in a layer apart from its BPMN, CMMN and DMN engines, so connecting to your identity provider means replacing or extending that IDM layer in code, typically by implementing the IdmIdentityService interface or overriding IdmIdentityServiceImpl. The Flowable docs provide an LDAP identity service as a reference implementation, which is a starting point for a directory-backed setup, not a finished integration. The REST API needs its own authentication and authorization, normally built with Spring Security and an OAuth2 or OpenID Connect provider, and that work does not happen automatically when the IDM layer is connected.

The harder part is group membership. Task visibility, candidate users and candidate groups in Flowable are resolved from the identity data your IDM layer returns, so a directory group that is nested, renamed, or scoped differently from the process model will silently send tasks to the wrong queue or to nobody. Before writing code, list every process and case that uses candidate groups, map each group name to its source in the directory, and decide who owns the mapping when a group changes. Check how your directory represents users who belong to many groups, service accounts, and people who leave the organization while holding open tasks.

For the REST API, decide early which identities are human users and which are service clients calling on their behalf, and which scopes or roles each may use. Confirm with your security team how tokens will be validated, how long they live, and how the Flowable REST application's endpoints map to roles. Test with a non-production directory that mirrors real group nesting, because identity errors often appear only after tasks are assigned, not when a user first logs in.

Which Flowable identity components you will touch

Flowable SSO and identity work spans four layers: the identity management engine that answers user and group questions, the REST application and starters that expose the engines, and the Spring Security layer that decides who may call them. Each layer has its own configuration surface, so plan the changes together rather than one at a time.

IDM engine and identity service

The IDM engine is the part of Flowable that resolves users, groups and memberships for task assignment and candidate lookups. Its contract is the IdmIdentityService interface, and the default implementation is IdmIdentityServiceImpl. Your team must decide whether to override that implementation or replace it with a class that implements the interface directly, then confirm every method the engine calls returns the data your directory holds.

Advanced docs

IdmIdentityService replacement

Replacing the identity service is the core integration point for pointing Flowable at your own user store. The key check is that user lookups, group membership and any password or authentication calls behave the same way for every process and task query, because the engine relies on them at runtime. Ask who owns this class after go-live, since changes to your directory schema will flow into it.

LDAP reference implementation

Flowable provides an LDAP identity service implementation as a reference. Use it to confirm how the engine expects directory attributes to map, then decide whether to adopt it or adapt it. Your team must confirm the search base, bind account, group attribute and paging behavior against your directory, because the reference is a starting point rather than a finished integration for your environment.

REST application and Spring Boot starters

The Flowable REST application and the Spring Boot REST starter expose the engines over HTTP, so identity decisions reach remote callers as well as the Java code. Confirm which starter or deployment mode your project uses, because the security configuration you write must match it. Verify that the identity service you configured is the one the REST layer loads, not a default bean.

Spring Boot docs

Spring Security filter chain

Spring Security guards REST calls before they reach the engine, so it controls authentication for the OpenID Connect or OAuth2 resource server and the roles that gate process and task endpoints. Your team must define which scopes or roles can start processes, claim tasks and read history, and test that a token without those roles is refused. Confirm the token issuer and audience settings against your identity provider.

Choosing between an LDAP service, a custom identity service and a federated login

This table compares three ways to connect Flowable to users and groups: adapting the LDAP reference service, writing a custom IdmIdentityService, and fronting the REST API with OpenID Connect while keeping an identity service for task assignment. Read each row as a trade-off, not a ranking. The main takeaway is that federated login secures access to Flowable but does not, by itself, tell the engine who can claim or complete a task.

OptionWhen it fitsOperational cost to plan forWhat to confirm
Adapt the LDAP reference serviceUsers and groups already live in a directory, and task candidates map cleanly to directory groupsDirectory query load from the engine during task assignment, sync logic for nested groups, and reviewing the reference code after each Flowable upgradeWhich LDAP schema and group attributes your directory uses, and whether the reference implementation covers them
Custom IdmIdentityService on a database or HR sourceIdentity data sits in an application database or HR system and the directory is not the system of recordWriting and testing the service, a sync job or query layer, handling deactivated users and reassigned roles, and maintaining the code through upgradesWho owns the source data, how often it changes, and how removed users are reflected in running tasks
OIDC login in front of the REST API, plus an identity service for assignmentUsers sign in through a corporate provider and the team wants token-based access to Flowable REST endpointsConfiguring Spring Security resource server settings, mapping token claims to engine groups, and keeping two sources of identity alignedWhich claims carry group membership in your provider, and whether token lifetimes suit long-running human tasks
Identity service only, no federated loginInternal engine use where the application already authenticates users and passes identity to FlowableCustom authentication for any direct REST access, and a separate control for credential rotation and access reviewsWhether any Flowable endpoint is reachable without the application in front of it
Combined approach (OIDC plus identity service)Regulated environments that need central login, audit of who acted on a task, and correct candidate groups at the same timeTwo integration points to test, plus drift checks between token claims and engine group recordsWhich system is authoritative for group membership, and how a change propagates to open tasks

How to build the identity integration step by step

This sequence takes Flowable from its default identity handling to a setup where your identity provider supplies users and groups, tasks reach the right people, and the REST API accepts only valid tokens. Each step closes with a check you can run before moving on.

  1. Inventory the identity data Flowable needs

    Start by listing what Flowable must know about people and groups: user IDs, display names, email addresses, and the group memberships that decide who can claim or see a task. Work with your identity team to confirm where each attribute lives, such as LDAP, Active Directory, or an OIDC provider's claims, and which group names are stable enough to use as identifiers. Record the result as a short mapping table that names each Flowable concept, such as a candidate user or candidate group, and its source attribute. The step is done when the table is agreed with the identity owner and every process role in your models maps to at least one source group.

  2. Implement or adapt the identity service

    Flowable's identity management is a replaceable service. The documentation describes overriding the default implementation or implementing the IdmIdentityService interface, and it provides an LDAP identity service as a reference. A developer chooses between adapting the LDAP reference and writing a service that reads from your directory or from a database synchronized with it. Keep the implementation read-only for users and groups unless you have a reason to write back. The step is done when the engine's identity queries return the expected users and groups in a test environment, checked by calling the service directly from a unit or integration test with a known test account.

  3. Map groups to candidate users and candidate groups

    Connect the groups from step one to the candidate settings in your BPMN user tasks. Each candidate group in a model should refer to a group the identity service returns, and each candidate user, where used, should match the user ID your provider issues. Decide whether group names are the directory's distinguished names, a short code, or a canonical identifier, and apply that choice consistently across models. Review each user task in the model for candidate assignments and remove any that rely on a group that does not exist in the directory. The step is done when a review of all models shows no candidate reference without a matching source group.

  4. Verify task visibility for each role

    Before wiring the API, confirm that task routing is correct. Start a process instance that reaches a user task assigned to a group, then query tasks as a member of that group and as a user outside it. Repeat the check for a user who belongs to several groups. The check passes when the group member sees the task in their task list, claiming works for them, and the outside user sees nothing. Record the test accounts and expected results so the same cases can be rerun after each change to the identity service or the models.

  5. Configure Spring Security as an OAuth2 or OIDC resource server

    For the Flowable REST API, configure Spring Security to act as an OAuth2 resource server that validates bearer tokens issued by your authorization server. Set the issuer or JWK set location in your application configuration, and restrict the REST paths so they require authentication. The Spring Boot starter for REST and the Flowable REST documentation should be checked against your Spring Boot version, since the current major line changes several Spring modules. A developer should confirm the exact configuration keys in the Spring Security reference for the version in use. The step is done when the application starts, the health endpoint behaves as your policy intends, and no REST path is reachable without a token unless you have deliberately exempted it.

  6. Define token scopes and roles

    Translate the access rules into scopes or roles carried by the token. A typical design separates read access to process instances, permission to start processes, and administrative rights over deployments. Map these scopes to Spring Security authorities and then to the REST operations they protect. Keep the mapping in code or configuration under version control so reviewers can read it. Check that the claim carrying groups is present in the token your provider issues, because group data often needs an explicit mapper in the identity provider. The step is done when a token with only the read scope can list instances but cannot start a process or deploy a model.

  7. Test with real test accounts and negative cases

    Run end-to-end tests against a staging environment with dedicated test accounts for each role, including a user with no Flowable rights. Confirm that a request without a token is rejected, that an expired or wrongly issued token is rejected, that a valid token without the needed scope is refused, and that task routing holds for each account. Keep these cases in a repeatable suite and run it after every change to the identity service, the provider configuration, or the security settings. The step is done when every negative case returns the expected rejection and every positive case matches the access matrix you agreed in step one.

How directory groups become candidate users and tasks

Group mapping decides who can claim work, so get it right before any process goes live. In Flowable, a user task carries candidate users and candidate groups, and the engine checks membership through the identity service (IdmIdentityService or your replacement for it) when someone asks for their task list or tries to claim a task. The identity service must therefore answer two questions reliably: which groups a user belongs to, and which users belong to a group. If your directory (LDAP, Active Directory or an identity provider's group claims) returns group membership only in part, or returns it differently for the REST API and the engine, tasks will appear for some people and vanish for others with no error. Confirm the exact group lookup calls your custom implementation makes, and test them against the same directory data your production users have.

Nested groups are the first pitfall. Directories often express membership through child groups, and a naive lookup returns only direct members. A user who sits in a sub-team may then never see tasks assigned to the parent team, or may see them only on some code paths. Decide whether nesting is flattened at lookup time or in a sync job, and write that decision down. Group renames are the second pitfall. Flowable stores candidate group identifiers in its tables, so renaming a directory group without a migration leaves open tasks pointing at a group that no longer resolves. Treat group identifiers as stable keys (for example, an immutable directory object ID) rather than display names, and plan a reconciliation step for any rename that does happen.

Users removed from the directory while holding open tasks need an explicit rule. The engine will not release their claimed tasks on its own, and an unclaimed task whose only candidate was that user can stall. Choose a policy for each case: reassign claimed tasks to a manager or queue, return them to candidate groups, or keep them until an administrator acts. Run a reconciliation job that compares open task assignees and candidate groups against the directory on a schedule you define, and report the differences to a named owner rather than changing them silently. As a test matrix, cover at least these cases: a direct member, a member of a nested group, a user added to a group after a task is created, a renamed group, a deactivated user with a claimed task, and a deactivated user with an unclaimed task. Ask any implementation partner to show each case passing against your directory, not a sample directory.

How a user's login reaches Flowable tasks and REST calls

The flow starts when a user signs in at the identity provider, which issues a token to the client. The client then calls the Flowable REST application with that token, and Spring Security validates it before any engine code runs. The identity service then resolves the user's groups from the directory, and the engine uses the user and groups to filter tasks by candidate user and candidate group. Check the trust boundary where the token crosses into the Flowable host, and confirm which claims your identity service maps to groups.

Login token flow from identity provider to filtered Flowable tasks.

Securing the identity path and secrets

Flowable's identity layer sits between your directory or identity provider and the engine's REST and management surfaces, so a weakness in either link exposes process data and task assignments. The cards below cover the controls that connect them, and each names what to check in your own environment before go-live.

Directory bind account least privilege

The account Flowable uses to query LDAP or Active Directory only needs read access to the users and groups the engine maps to candidates and assignees. Ask your directory team to confirm the bind account cannot write attributes, reset passwords or read unrelated organizational units. Test the bind with the exact search base and filters your IDM implementation uses, then record which attributes the engine actually reads so the scope can be reviewed later.

Flowable advanced docs

LDAP connections over TLS

Identity queries carry user names, group memberships and sometimes credentials during bind, so the connection to the directory should use TLS with certificate validation enabled. Confirm that the Flowable LDAP identity service is configured for an encrypted transport, that the server certificate chain is trusted by the JVM truststore, and that plain LDAP on port 389 is not reachable from the engine's network segment. Verify by capturing a bind attempt in a test environment.

OIDC client secret handling

When the REST API or a task UI authenticates through OpenID Connect, the client secret is a credential that grants the application's identity. Store it in a secrets manager or an encrypted environment variable, never in process model files, Git repositories or application.properties committed to source control. Ask who can rotate it, how often rotation is scheduled, and whether a rotation can be done without redeploying the engine. Scan repositories and container images for the value.

Token validation settings

Spring Security must validate the issuer, audience, signature and expiry of every access token before the engine accepts a request. Confirm that the issuer URI points to your production identity provider, that the audience matches the Flowable API client, and that signing keys are fetched from the provider's trusted JWKS endpoint. Test with an expired token, a token from another issuer and a token for a different audience, and confirm each is rejected.

No unauthenticated engine endpoints

The Flowable REST API exposes process start, task completion and history queries, so every route should require an authenticated principal unless it is deliberately public. Review the security configuration for permitAll rules, check that health probes do not reveal process data, and confirm that default or sample credentials from development setups are removed. Probe each endpoint without a token from outside the application network to verify the response.

Actuator endpoint behind authentication

The Spring Boot starter exposes an actuator endpoint at /actuator/flowable for monitoring running processes, and that view can reveal process definitions and instance activity. Restrict it to a management port or a role reserved for operators, and do not expose it through the public ingress. Ask your platform team to confirm the exposure settings in each environment and to test an unauthenticated request against the production hostname.

Flowable Spring Boot docs

Identity setup differences for single-node, multi-node and air-gapped deployments

A single Flowable node is the simplest identity setup. One process of the engine handles every request, so the identity service, the group lookups and the token validation all run in the same place. Changes to identity configuration take effect on restart, and there is no second node that can drift out of step. The main risk is not coordination but dependency on the identity provider: if the token issuer or directory is unreachable, the engine cannot validate callers at all.

  • Issuer reachability: the node must reach the OpenID Connect issuer's metadata and key endpoints from its own network, and any outage there blocks REST calls.
  • Group lookups: a single process can cache group membership in memory, so confirm how long cached memberships last before a removed user loses access.
  • Certificate trust: the JVM truststore must include the issuer's certificate chain, and this is set once per node.
  • Restart behavior: confirm that a restart reloads identity configuration and that no stale session state survives.
  • Test users: verify candidate user and group mapping with real accounts, not only the default test identities.

Before go-live, check that the issuer outage behavior matches what your operations team expects for a single point of failure.

How to test that access works and fails safely

The point of this section is to prove, before go-live, that Flowable grants access only to the right people and refuses everyone else when the identity layer misbehaves. Start with the cases that matter most for a process engine: a valid user sees only the tasks and process instances their groups and direct assignments allow. Write tests that log in as several representative users, query the task list through the Java API and the REST API, and confirm that candidate-group tasks appear only for members of the mapped group. Include a user who belongs to two groups and a user who belongs to none. Check the same rules on the REST endpoints that return task and instance data, because a permission that holds in the Java API can still be missing from a controller or a custom endpoint.

Next, test the refusal paths. An unknown user, a disabled account and a user whose directory record has been removed should all be rejected at the token or session layer, not just hidden in the interface. Test that an expired token is rejected on every protected REST path, and that a token issued before a group change does not keep old privileges after the refresh window you have defined. Group changes need a specific test: move a test user out of a candidate group, wait for the refresh interval your design specifies, then confirm the user loses visibility of open tasks. Then simulate a directory outage. The expected result for this design is that the engine fails closed, returning errors or empty results rather than cached access that was never refreshed. Confirm the exact behavior with your own Spring Security and identity service configuration, since it depends on what your code does when the lookup throws.

Run these cases as automated tests against a dedicated test directory with fixed fixtures, so results are repeatable and the test users never touch production identities. Keep the tests in the same repository as the identity service so they run on every change to the mapping code. For the handover, store the test report, the fixture definitions, the Flowable and Spring Security versions tested, and the date of each run, so the security or compliance team can see what was verified and when. Ask your implementation partner or internal team to state in writing which cases are automated, which are manual, and what evidence each one produces. Any case that cannot be automated, such as a live outage of your production directory, should be listed with a documented procedure and a named owner.

What to monitor, back up and document after go-live

This table lists the areas that need ongoing attention once Flowable trusts an external identity provider, what to watch in each area, and what to keep current. Read it as a handover checklist for the operations team and the security reviewer. The main takeaway is that identity mappings and token validation settings change more often than the engine itself, so they need their own monitoring and their own backups.

AreaWhat to watchWhat to keep current
Authentication failuresSpikes in rejected logins at the Flowable REST API or web entry point, grouped by client and by identity provider errorRunbook for triage, alert thresholds agreed with the security team, and a log of known causes
Directory connection healthConnection failures, bind errors and timeouts to LDAP or the identity provider, and delays in user or group lookupsDirectory service account details, rotation dates, and the list of hosts and ports the IDM service uses
Token validation errorsRejected tokens for expired keys, wrong issuer or audience, and clock skew between Flowable nodes and the providerIssuer URL, accepted audiences, signing key rotation schedule, and the Spring Security configuration version
Group to candidate mappingUsers whose group membership changed but whose candidate or assignee rights did not, and tasks with no eligible candidateMapping table or rules, owner for each group, and a record of changes approved by the process owner
Identity configuration backupsWhether the latest copy of the IDM service code, property files and mapping rules can be restored to a test nodeVersioned copies in source control, plus secrets stored in a vault rather than in the backup itself
Re-testing after upgradesLogin, token refresh, task visibility by group and admin access after each Flowable, Spring Boot or Spring Security changeTest cases for each role, a test identity set, and a sign-off record kept with the release notes
Security team documentationEvidence requests such as access reviews, admin role lists, logging coverage and change history for identity settingsArchitecture diagram of the identity flow, configuration inventory, access review records and the last test report

Questions buyers ask before hiring help with Flowable SSO

How much effort does Flowable SSO and identity integration take?

The effort depends on how many identity sources you have, how your groups map to Flowable roles, and how many entry points need protection. A single OpenID Connect provider feeding the REST API is a much smaller job than replacing the IDM engine with a custom IdmIdentityService for LDAP, plus group-to-candidate mapping for BPMN and CMMN tasks. Ask any partner to break the quote into identity service work, REST security, group mapping, testing and documentation, so you can see which parts scale with your directory. Most of the cost is one-time build effort, with recurring effort appearing when identity sources or group rules change.

Can our in-house team implement Flowable SSO without outside help?

Often yes, if your team already knows Java, Spring Security and your identity provider's protocol settings. The Flowable docs describe replacing identity management by overriding IdmIdentityServiceImpl or implementing the IdmIdentityService interface, with an LDAP identity service provided as a reference, so the starting point is documented. The risk sits in the details: correct token validation, consistent group names across the directory and Flowable, and access rules that match your process owners. Teams without recent experience with these areas usually benefit from a short review of their design before build starts.

What do we need to provide before SSO work can start?

Plan to provide read access to the directory or an export of the relevant users and groups, a written group model that says which groups become candidate groups for which tasks, and test accounts for each role. You will also need OpenID Connect or OAuth2 client registration details from your identity provider team, a named owner who signs off on access rules, and a test environment that mirrors production identity settings. Security sign-off should cover how the REST API is protected and how admin rights are granted. Missing any of these usually adds time, because the build waits on answers rather than code.

How do Spring Boot 4 upgrades affect Flowable identity and security code?

Flowable 8.0.0, released on February 27, 2026, upgraded to Spring Framework 7 and Spring Boot 4 and dropped backward compatibility for Spring Boot 3. Custom identity services, Spring Security filter chains and OAuth2 configuration written for Spring Boot 3 will need review and retesting during that move. Jackson 3 is now the default JSON library, with a Jackson 2 compatibility layer, so any custom token or user payload handling should be checked. Ask for the upgrade and identity regression tests to be scoped together, so your login, group mapping and task visibility are verified on the new versions.

What risks should we check in group mapping for candidate users and tasks?

The main risks are users seeing tasks they should not see, tasks with no eligible candidate, and stale group membership after someone changes roles. Check that group names from your provider map exactly to the candidate groups in your BPMN and CMMN models, and that removed users lose access on their next login or token refresh. Test each process with users from several groups, including users in more than one group and users in none. Ask the partner to document the mapping as a table your process owners can read and approve.

Does Flowable's commercial product change the identity picture?

Possibly, but it depends on what you are buying. Flowable's open source page says its commercial products, including Flowable Work, Engage, Orchestrate and Design, are built on the same engines and add security controls, monitoring and governance. Those features may overlap with the identity work you plan, so compare what the commercial products provide against your own requirements before committing to a custom build. Apache 2.0 engines remain available for open source use, and the identity integration on the engines is still your responsibility to design, test and operate. Confirm the licensing and feature details directly with Flowable.

Can we run SSO on the open source setup and still get compliance evidence?

Yes, the identity setup can be documented as evidence, but the evidence comes from your own controls and an independent assessment, not from the integration work itself. DeployOpen prepares systems, controls and evidence for compliance assessments, and does not issue audit reports or certifications. Ask for records of access rules, group mappings, token settings and test results, along with a list of who approved each rule. Your auditor or certification body will decide whether those records meet the requirements that apply to you.

How DeployOpen works on Flowable identity work

DeployOpen plans and implements Flowable SSO and identity integration inside your own infrastructure, so the identity provider, group model and API security are reviewed by your team. The work starts with a written scope that names the identity source, the protocol and the process models that depend on it.

How we scope

  • Inventory which BPMN, CMMN and DMN artifacts depend on users, groups or candidate assignments today.
  • Confirm the identity source (LDAP, directory or OpenID Connect provider) and who owns its group data.
  • Agree in writing whether the REST API, the task workflow or both need SSO, and which roles map to admin actions.

How we build

  • Implement the identity service by overriding IdmIdentityServiceImpl or the IdmIdentityService interface, using the LDAP reference implementation as a starting point.
  • Configure Spring Security with OAuth2 or OpenID Connect for the REST API, and map group claims to candidate groups and users.
  • Test task assignment, claiming and admin access with named test accounts in a non-production environment before cutover.

How we hand over

  • Deliver configuration, identity service code and group mapping rules in your repository, with a document describing each mapping.
  • Provide test cases showing which groups can see, claim and complete which tasks, for your reviewers to rerun.
  • Walk your platform and security teams through token handling, service account setup and how to add a new group.

How we support

  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing are available as a retainer, including regression checks when Flowable or Spring versions change.
  • Confirm with us during scoping which support terms, response expectations and environments the retainer will cover.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.