“Our application uses Keycloak.”
That sounds like an answer to an integration question. In practice, it opens up several more.
Which realm? Who manages it? Does the application use Keycloak to authenticate users, or does it also depend on specific roles and groups to decide what those users can do?
Can it use an existing identity provider? Does it expect to deploy its own? Does it need administrative access to configure things when it starts?
Those details matter when you bring that application onto a platform. Finding the same product name on both architecture diagrams can make the integration look further along than it is.
A shared product name leaves a lot undecided
At Defense Unicorns, we take an opinionated approach to identity, shaped by experience and security requirements. Applications arrive with their own decisions already baked in.
Some assume a particular realm. Others lean on Keycloak to manage roles and groups that are deeply tied to application behavior. Those choices can make sense in the environment where the application was built.
The platform also has decisions about what it manages, what applications can control, and which identity boundaries it needs to preserve.
Both sides can have a working identity implementation. Making them work together still takes engineering.
The product name tells you something about the technology involved. It tells you much less about how the application expects to use it.
Authentication is only part of the agreement
“We support SSO” establishes that a capability exists. It leaves a lot of application behavior unexplained.
Authentication establishes who the user is. Authorization determines what that user can do. An application needs a way to connect the identity it receives to the permissions it enforces.
That connection might depend on roles in a token, group membership, records in the application’s own database, or some combination of those things.
Even within Keycloak, realm roles and client roles are distinct, and token mappings can change how role information is presented to an application. The Keycloak documentation on token role mappings describes those mechanics.
The integration question is whether the application receives the information it expects and interprets it correctly.
A user reaching the application after signing in proves part of that path works. It doesn’t establish that the user has the right permissions.
The same role name can mean different things
Consider a hypothetical application that expects a realm role called admin.
In its original environment, the application owns a dedicated realm. Within that boundary, admin means an administrator of that application.
Now move it onto a platform with a centrally managed realm serving multiple applications.
What should admin mean there? Who can assign it? Which applications consume it? Would giving someone administrative access to one application accidentally give them access to another?
The original role name made sense within the original boundary. Moving the application changed the context around it.
One possible approach is an application-specific client role. Another is an explicit mapping from a platform-managed group to a permission the application understands. The application might also manage its own permissions after authentication.
Each approach comes with ownership and maintenance decisions. Somebody needs to define the mapping, provision it, and understand what happens when it changes.
“Both sides use Keycloak” doesn’t settle any of that.
Identity integration can hide a management dependency
There’s another distinction worth making early: using an identity service and managing that service are different capabilities.
An application might authenticate users through standard endpoints while also calling the Keycloak administration API to create users, configure roles, or manage groups.
That second dependency can change the integration substantially.
The application may expect credentials with permissions the platform doesn’t grant to workloads. It may assume it can modify configuration owned by another team. Its startup process may depend on successfully creating resources that the platform expects to provision separately.
None of this is obvious from “supports SSO.”
Ask what the application does to the identity service as well as what it receives from it.
If it needs management access, identify the specific operations and their purpose. “Needs Keycloak admin access” is too broad to evaluate usefully. “Creates these application roles during installation” gives both teams a concrete requirement to discuss.
Write down a small integration contract
This doesn’t need to become a large architecture document. A short, concrete agreement is more useful than several pages of shared terminology.
Start with the expectations that affect behavior:
| Area | What needs to be explicit |
|---|---|
| Ownership | Who manages the realm, client registration, roles, groups, and mappings? |
| Authentication | Which protocol and flow does the application use, and which issuer does it trust? |
| Identity | Which identifier does the application use to associate a login with a local account? |
| Authorization | Which claims or application records determine permissions? |
| Management access | Does the application create or modify identity resources? With which permissions? |
| Configuration | Which expectations can be changed through supported settings? |
| Lifecycle | How are access changes, account disablement, and existing sessions handled? |
The identity question can be easy to overlook. If the application associates accounts using an email address, what happens when that address changes? If it uses an identity-provider subject identifier, what happens when the provider or realm changes?
The lifecycle question matters too. Removing a role may not immediately change what an existing application session can do. Both teams should understand when the change takes effect and whether that meets the requirement.
You don’t need to predict every possible failure. You do need to identify the assumptions the integration relies on.
Separate configuration work from engineering work
Once the expectations are visible, classify the gaps.
Changing a supported issuer URL, supplying client credentials, or configuring a supported claim mapping is configuration work.
Adding support for a configurable role claim when the application currently hardcodes one is application engineering.
Providing a supported way to provision an application’s identity resources may be platform engineering.
Deciding who is allowed to grant application administrator access is an ownership decision. No amount of YAML resolves an undecided responsibility.
These categories help teams estimate the work and assign it to someone who can actually complete it.
They also make “almost integrated” a more useful statement. A missing setting and an application code change can look similar from a project status dashboard. They have very different implications for delivery.
A configuration gap can reveal a missing platform capability. An application dependency can reveal a portability problem. The point is to describe the work accurately enough to make a decision.
Prove the behavior, including denied access
A successful login is a useful first check. Follow it with the application behavior that depends on that identity.
Use a few representative users and agree on the expected results before testing.
| Test | Expected behavior |
|---|---|
| User with ordinary application access | Can perform the intended everyday tasks |
| Application administrator | Can perform the agreed administrative actions |
| Authenticated user without application access | Cannot access protected application functionality |
| User whose elevated access has been removed | Loses elevated permissions within the agreed time |
| User without a required role or claim | Receives the agreed restricted behavior rather than unintended permissions |
Verify the protected operations themselves. A hidden button is useful interface behavior, but it doesn’t prove that the corresponding API rejects an unauthorized request.
When a test fails, trace the path: what identity information was issued, what the application consumed, how it mapped that information, and which permission check it applied.
That gives both teams a better starting point than “SSO is broken.”
Record the configuration and expected outcomes so the next deployment can repeat the checks. An integration that only works because someone remembers what they changed in an administration console is going to be difficult to reproduce.
This is the last mile
This is what I’m calling the last mile of platform engineering: the work between providing a capability and making it usable by an application.
Identity makes a good example because the shared terminology sounds reassuring. The same issue shows up around certificates, storage, and other assumptions an application brings to its environment.
A platform can provide a working service while an application expects a different ownership model, configuration surface, or lifecycle. Those expectations have to meet somewhere.
The useful deliverable is an agreement both teams can implement and behavior they can verify.
The product name is not the integration contract.
Continue the conversation on LinkedIn ↗