Case studies
Custom

Procurewillow

A Bubble procurement migration with scoped SSO and controlled approval authority

  • Custom
  • Enterprise procurement operations
  • Bubble

34days

Delivery

50/50

Identity/authority acceptance

30,000/30,000

Approval history

780ms

66.1% lower

Core request API, p95

Illustrative before/after figures.

The product

Requesters submitted purchasing needs, approvers applied four established approval patterns and procurement operators advanced accepted work. Identity administrators managed enterprise access. Historical decisions had to retain their original actors even when employees changed roles. The product's scope was the portal and its current procurement process, not a replacement ERP or company-wide identity programme.

The challenge

The trigger was an enterprise requirement to use the agreed identity provider and follow a controlled release model. Discovery compared a narrow identity bridge with a broader migration. It also examined pending approvals when users were disabled and requests spanning multiple business units. The selected Custom approach addressed the combined application and operating requirements, rather than treating an SSO checkbox as the entire enterprise requirement.

The procurement sponsor needed enterprise sign-in without giving a signed-in user approval authority they no longer held. Identity, role, business unit and approval threshold had been treated too loosely. We scoped one OIDC provider and the existing approval rules, then used a business-unit pilot after cross-unit requests were resolved. The brief excluded automatic provisioning and a second enterprise integration so the migration had a testable endpoint.

How we tackled it

  1. 01

    Map identity. A stable internal person record linked to the external provider, while application permissions remained reviewable business rules.

  2. 02

    Preserve approval meaning. Decisions referenced request version and authority at the time they were made.

  3. 03

    Test revocation. Disabled or reassigned users were checked across sessions, pending approvals and background work.

  4. 04

    Stage the release. A routing register controlled the pilot and recorded how requests crossing unit boundaries were handled.

What we built

Next.js, TypeScript and Tailwind implemented the portal. Postgres with Drizzle stored requests, versions and decisions. The approved identity adapter connected the provider's OIDC contract, and a worker handled existing notifications. Infrastructure, secrets and operating accounts followed the customer's ownership model. No specific cloud was treated as proof of enterprise readiness. Historical actor references remained stable even when current identity attributes changed.

The rehearsal tested provider outage, expired sessions, group changes and edits after approval. Synthetic accounts exercised all four approval patterns. The pilot business unit moved after the sponsor accepted critical journeys and reconciled request history. Recovery preserved decisions and external effects created after the switch before returning the earlier route. Handover included provider configuration, permission ownership and the tested release procedure.

Before & after — illustrative results

The illustrative identity suite includes both sign-in and authorisation cases. It does not count a successful login as proof that the user may approve a request. Core API latency uses 100 concurrent sessions and reports provider sign-in separately. The recovery drill has no measured baseline, so no percentage improvement is claimed. The results do not establish procurement savings, external certification or an actual enterprise customer relationship.

Illustrative before/after values. No tests or client measurements were performed for this story. The comparison conditions describe how an equivalent real migration would be evaluated; they are not a test report.

MetricBeforeAfterComparison conditions
Identity/authority acceptance41/50 cases pass in the first integration rehearsal50/50 passAgreed provider sandbox; sign-in, disabled users, sessions and business permissions.
Approval history30,000 source requests30,000/30,000 reconciledCheck decision actor, request version and business-unit relationships.
Core request API, p952,300 ms780 ms — 66.1% lower100 sessions, 30 minutes; identity-provider sign-in latency reported separately.
Pilot recoveryNo rehearsed baseline34-minute drill; 0 unresolved decision deltasControlled write pause; reconcile new decisions and external effects before return.
Diagnose a sign-in versus permission failure, median30 min7 minTwenty fixed OIDC/session/authority scenarios; same support owner; identify the correct authority without granting extra access.
Prepare a business-unit pilot acceptance pack, median120 min40 minFive fixed units; same required identity checks, approval histories and recovery evidence; exclude external provider response time.

The outcome

Procurewillow ended the demonstration with a technical sponsor able to review the provider contract, business authority and rollout gates independently. The receiving team could disable a staged user, inspect pending approval behaviour and recover the pilot route without losing new decisions. This case shows how a Custom migration can answer an enterprise requirement through explicit scope and evidence rather than a broad claim of readiness.

Why these improvements mattered

Authentication and business authority became independently observable. The receiving team could resolve a session issue without editing procurement permissions and could prove which request version had been approved. The story demonstrates enterprise integration discipline, not a claim that SSO automatically supplies every security or provisioning control.

Scope & timeline

Scope

Custom included the existing request and approval workflows, one provider integration, authority mapping and staged release. The example selected OIDC for that provider; SAML remained an alternative requiring its own confirmed contract. Automatic provisioning was not implied. ERP replacement and new procurement rules stayed outside scope. The technical sponsor accepted a business-unit pilot only after cross-unit request authority had been explicitly resolved.

Delivery timeline

Delivery schedule: 34 working days. Team: Two senior engineers, shared QA and customer identity plus procurement owners. The clock starts after scope approval, usable source data, test access and agreed UI are available. Waiting for external approvals is excluded. This is a bounded example, not a turnaround guarantee.

Days 1–7: agree identity contracts, authority mappings and pilot boundaries.

Days 8–20: build provider integration and versioned approval workflows.

Days 21–31: reconcile history and test disabled/reassigned identities.

Days 32–34: run the accepted pilot and transfer recovery procedures.

FAQ

Does enterprise SSO include user provisioning automatically?
No. Sign-in, group mapping, session policy and automated provisioning are distinct capabilities that need explicit scope.
Can current roles replace historical approval identities?
No. A migrated decision should retain its original actor and request version even when the person's present role changes.

Discuss a similar migration

Bring your identity-provider requirements, an approval exception and a candidate pilot business unit. Bubble to Code can map the SSO contract, authority rules and release boundary for Custom scope. Separate provisioning and broader enterprise integrations before agreeing delivery terms.