Scrivio Interview library
DesignAdvanced6 min read · updated 12 November 2026

Your company has 60 internal applications, some using a header-based SSO proxy, some SAML, some OIDC. How would you converge them onto one approach?

I would make OIDC with one central identity provider the target for new and modernised applications, because it works for server-rendered apps, single-page apps, APIs and service tokens. Legacy applications that cannot change stay behind an identity-aware proxy that passes signed identity assertions rather than plain headers, and SAML applications move to OIDC where the vendor supports it but keep SAML where enterprise tools require it. A shared Spring Boot starter standardises configuration, role mapping and logout, and the migration is planned by risk and usage with status tracked centrally.

Why this question is asked

Large companies collect authentication approaches the way they collect applications: one team bought a SAML product, another wrote a header-based proxy, a third used OIDC. Each works, but together they mean 60 different security reviews, inconsistent logout and roles, and no single place to enforce MFA. Interviewers ask this design question to see whether we can choose a target, respect what cannot move, and make the migration cheap enough that teams actually do it. In this answer, we will recap the three approaches, choose the target, decide what happens to each group, build the shared starter, and plan the migration.

1A Quick Recap of the Three Approaches

A header-based SSO proxy authenticates the user and forwards requests with a header such as X-User. The application trusts the header, which is only safe if nothing else can reach it. SAML 2.0 is an XML-based standard in which the identity provider sends a signed assertion to the application through the browser; it is common in enterprise and vendor software. OIDC (OpenID Connect) is a JSON-based standard on top of OAuth 2.0: the application redirects to the provider and receives a signed ID token, and APIs accept access tokens.

The differences matter for the choice. Headers carry no proof by themselves. SAML is solid for browser login but awkward for single-page apps, mobile apps and APIs. OIDC and OAuth 2.0 cover all of those, and Spring Security supports them directly with oauth2Login(), oauth2ResourceServer() and oauth2Client().

The 60 applications today
ApproachApplicationsTypical owner
Header-based SSO proxy25older in-house apps, some unmaintained
SAML 2.015vendor products and a few in-house
OIDC20newer in-house apps, inconsistent setup
Illustrative split; the real inventory comes first.

2Choosing the Target: OIDC With a Central Identity Provider

The target is one identity provider, connected to the company directory, and OIDC as the default protocol for every new or modernised application. One provider means one place for MFA policy, one session for single sign-on, one log of logins, and one switch to disable a leaver's access everywhere. OIDC is the protocol because it serves every kind of client we have: browser applications log users in with the authorization code flow, single-page apps and mobile apps use the same flow with PKCE, APIs validate access tokens, and services get their own tokens through the client credentials flow.

Choosing a target does not mean forcing it on everything at once. It means every new application starts there, and every other application has a defined path, which may be to stay where it is for good reasons.

3What Happens to Each Group

Header-based applications are the riskiest, because their security depends entirely on network layout. Applications that are actively maintained move to OIDC, often in a few days with the shared starter. Those that cannot change, such as unmaintained tools or products we cannot modify, stay behind an identity-aware proxy that authenticates against the central provider and forwards a signed assertion, for example a JWT, which the application or a small sidecar validates. Plain unsigned headers are retired.

SAML applications split in two. Where the vendor supports OIDC, we switch, because it removes certificate and metadata handling and aligns them with the rest. Where an enterprise product only supports SAML, or SAML is required by a partner, we keep it, connected to the same central provider, which speaks both protocols. The goal is one identity provider, not one protocol at any cost.

Existing OIDC applications usually only need alignment: same provider, same claims for roles, same logout behaviour and token lifetimes.

Step throughChoosing the path for one application
  1. Uses a plain header today?
    YesCan the code change?NoNext question
  2. Can the code change?
    YesMove to OIDC with the starterNoIdentity-aware proxy with signed assertions
  3. Uses SAML?
    YesVendor supports OIDC?NoAlign OIDC settings with the standard
  4. Vendor supports OIDC?
    YesSwitch to OIDCNoKeep SAML on the central provider

4 steps in order. Play them, or step through them one at a time.

4A Shared Spring Boot Starter

Most of the in-house applications are Spring Boot, so the cheapest way to make migration easy is a company starter: a dependency that brings the standard security configuration. It configures oauth2Login() for web apps and oauth2ResourceServer() for APIs, points at the central provider, maps the provider's groups claim to Spring authorities in one agreed way, implements logout that also ends the provider session, sets cookie and session defaults, and exposes a few properties for what legitimately differs between applications.

XML
<!-- pom.xml -->
<dependency>
<groupId>com.example.platform</groupId>
<artifactId>example-security-starter</artifactId>
</dependency>
# application.properties: everything else comes from the starter
example.security.client-id=reports
example.security.role-prefix-mapping.reports-admins=ADMIN
example.security.mode=web # or api

With the starter, a migration for a typical application is a dependency, two or three properties and a test run, instead of each team learning OIDC from scratch. Fixes, such as a new MFA claim check or a library upgrade, ship once in the starter and reach every application with the next version. We keep the starter small and documented so teams can still override parts when they need to.

5Planning the Migration by Risk and Usage

We rank applications by risk and usage. Header-based applications that hold sensitive data or are exposed widely go first, because they carry the most danger. Applications with many daily users go early because they bring the most single sign-on benefit. Low-use, low-risk tools go last, and some are retired instead of migrated.

A central tracker, a simple table owned by the identity team, records each application's current approach, target, owner, planned date and status. It is reviewed monthly, and it makes the remaining risk visible to leadership. A target such as 'no unsigned header trust by the end of the year' gives the programme a clear finish line.

6Follow-up questions

Why not standardise on SAML instead, since many tools support it?

SAML works well for browser login, but it is a poor fit for single-page apps, mobile apps and APIs, and service-to-service tokens have no SAML equivalent in practice. OIDC and OAuth 2.0 cover all of them, so they make a better default while SAML remains supported where needed.

What about logout across all these applications?

Single logout is hard in every protocol. The starter should at least end the local session and the provider session, using OIDC RP-initiated logout, and keep access tokens short so sessions in other applications end soon after. Back-channel logout can be added where the provider and applications support it.

How do we stop new applications from adding their own login?

By making the starter the default in project templates, requiring the identity team's review for any exception, and scanning repositories for login code or password tables outside the approved path.

7Conclusion

In this answer, we converged 60 applications on one approach: OIDC with a central identity provider as the target, an identity-aware proxy with signed assertions for legacy applications that cannot change, SAML kept only where vendors or enterprise tools require it, a shared Spring Boot starter that standardises configuration, role mapping and logout, and a migration ordered by risk and usage with central tracking.

What to say in the interviewAbout 90 seconds aloud

Open with

I would pick one central identity provider, connected to the directory, and make OIDC the default protocol, because it covers server-rendered apps, single-page and mobile apps with PKCE, APIs with access tokens and services with client credentials, and Spring Security supports all of them.

Then, if they want more

Then each group gets a path. Header-based apps are the riskiest because their security depends on the network: maintained ones move to OIDC, and ones that cannot change stay behind an identity-aware proxy that forwards a signed assertion such as a JWT, not a plain header.

SAML apps move to OIDC where the vendor supports it, and stay on SAML where an enterprise product or partner requires it, but always against the same provider, since the goal is one provider rather than one protocol. Existing OIDC apps just get aligned on claims, logout and token lifetimes.

To make migration cheap, I would build a company Spring Boot starter that configures oauth2Login or the resource server, maps the groups claim to authorities in one standard way, implements logout including the provider session, and sets session and cookie defaults, so a migration is a dependency and a few properties.

I would order the work by risk and usage, starting with unsigned header apps holding sensitive data, and track every application's status, owner and date centrally, reviewed monthly.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Official documentation
Spring Security reference
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Your company has 60 internal applications, some using a header-based SSO proxy, some...": https://scrivio-interview-library.netlify.app/spring-boot/authentication/2d23ccf699/