Enterprise SSO across OIDC and SAML for a global pharma content platform
- Laravel
- OIDC
- SAML
- JWT
One brokered Laravel integration replaced per-application auth, turning new-app sign-in onboarding from bespoke protocol work into configuration while spanning every OIDC and SAML identity provider the platform had to trust.
Outcome
One brokered Laravel integration replaced per-application authentication, turning new-app SSO onboarding from bespoke protocol work into configuration across OIDC and SAML providers.
Context
This work served a set of internal Laravel applications on a global pharmaceutical content platform used by marketing, medical, and regulatory teams across regions. I co-designed and implemented the broker in collaboration with the platform teams responsible for the applications it served.
Problem
The engagement was a global pharmaceutical content platform: a set of internal Laravel applications that marketing, medical, and regulatory teams used to author and publish across regions. Each application had grown its own login. Some spoke OIDC to a modern cloud identity provider; others had to federate through a legacy SAML identity provider that a specific business unit refused to retire. Users bounced between apps and re-authenticated at every boundary, and every new application meant re-implementing token validation, claim mapping, and session handling from scratch. In a regulated environment, that duplication was also a compliance liability: no single place to reason about who could sign in, or to prove it during audit.
Constraints
- Enterprise change control: production auth changes moved through staged approval, so the design had to be provably backward compatible before cutover.
- Two protocol families, non-negotiable: the cloud identity provider spoke OIDC; the legacy provider spoke SAML. Neither side would move to the other.
- Zero tolerance for a sign-in outage on a platform teams depended on daily across time zones.
- Everything here is described under NDA, so figures are relative and identity-provider specifics are anonymized.
Decisions and trade-offs
Central broker over per-application auth. The tempting path was to keep auth local to each app and share a library. Rejected: a shared library still duplicates trust configuration and drifts per app, and it leaves no single audit surface. I co-designed a central authentication broker in Laravel that every application delegates to, so trust with each identity provider is configured once and inherited everywhere. This is what makes the platform legible to an enterprise Laravel architect and to an auditor.
OIDC plus a SAML bridge over OIDC-only. The clean answer was to standardize on OIDC and force the legacy provider to migrate. Rejected as unrealistic on the business unit's timeline. Instead the broker normalizes both protocols to one internal identity contract: the SAML assertion and the OIDC ID token are each mapped to the same claim set, so downstream applications never learn which protocol authenticated a given user. The Laravel OIDC / SAML SSO integration became one surface with two adapters rather than two parallel systems.
Session for the app edge, JWT for service calls. A pure stateless-token model was considered and rejected for the browser edge: it complicates revocation and logout across apps. The broker issues a server-side session for interactive use and mints short-lived signed JWTs for service-to-service and API calls, so revocation stays immediate at the edge while internal calls stay stateless.
Implementation
I co-designed and implemented the central Laravel authentication broker, normalized OIDC ID tokens and SAML assertions into one internal claim set, and issued server-side browser sessions alongside short-lived signed JWTs for service and API calls. The application teams integrated their clients with that shared boundary.
Results
Sign-in became one integration to reason about instead of one per application. Onboarding a new application to full SSO went from bespoke auth work to configuration, because the protocol handling, claim mapping, and revocation already existed in the broker. Auth and security work was a sustained track across the 4.5-year engagement, and the single brokered surface gave the security review a concrete, auditable answer to who can authenticate and how, which is exactly the compliance question this posture was built to close.
Takeaways
Centralizing the trust boundary makes security easier to operate and audit. Protocol differences belong behind an internal identity contract so applications stay independent of provider history.