Tuesday, June 16, 2026

Security Boulevard Logo

Security Boulevard

The Home of the Security Bloggers Network

Community Chats Webinars Library
  • Home
    • Cybersecurity News
    • Features
    • Industry Spotlight
    • News Releases
  • Security Creators Network
    • Latest Posts
    • Syndicate Your Blog
    • Write for Security Boulevard
  • Webinars
    • Upcoming Webinars
    • Calendar View
    • On-Demand Webinars
  • Events
    • Upcoming Events
    • On-Demand Events
  • Sponsored Content
  • Chat
    • Security Boulevard Chat
    • Marketing InSecurity Podcast
    • Techstrong.tv Podcast
    • TechstrongTV - Twitch
  • Library
  • Related Sites
    • Techstrong Group
    • Cloud Native Now
    • DevOps.com
    • Security Boulevard
    • Techstrong Research
    • Techstrong TV
    • Techstrong.tv Podcast
    • Techstrong.tv - Twitch
    • Devops Chat
    • DevOps Dozen
    • DevOps TV
  • Media Kit
  • About
    • Sponsor

  • Analytics
  • AppSec
  • CISO
  • Cloud
  • DevOps
  • GRC
  • Identity
  • Incident Response
  • IoT / ICS
  • Threats / Breaches
  • More
    • Blockchain / Digital Currencies
    • Careers
    • Cyberlaw
    • Mobile
    • Social Engineering
  • Humor
Security Bloggers Network 

Home » Security Bloggers Network » How SSOJet Uses Cloudflare Workers to Deliver High-Availability SSO for SaaS Apps

SBN

How SSOJet Uses Cloudflare Workers to Deliver High-Availability SSO for SaaS Apps

by SSOJet - Enterprise SSO & Identity Solutions on December 1, 2025

Single Sign-On (SSO) is one of those things SaaS companies absolutely need—but rarely want to manage.
When it works, nobody notices. When it breaks, everyone notices.

Slow redirects, regional downtime, or a misconfigured IdP can instantly block thousands of users from logging in. Traditional centralized auth systems become bottlenecks—especially when serving global users.

At SSOJet, we’ve faced this challenge head-on. Instead of relying on conventional cloud servers or single-region deployments, we built our SSO engine on Cloudflare Workers, enabling us to deliver authentication at the edge—fast, resilient, and always available.

In this blog, we’ll break down how SSOJet uses Cloudflare’s global compute network to power enterprise-grade SSO for modern SaaS apps.


Why Traditional SSO Architectures Struggle

Most SaaS products still run their authentication stack in one of these architectures:

1) A Single-Region Server (AWS, DO, GCP)

  • Login traffic has to travel across continents.
  • Latency spikes during high load.
  • If the region has an outage → authentication stops.

2) Containerized Auth Services (K8s)

  • More scalable, but still region dependent.
  • SAML metadata hosting often isn’t globally distributed.
  • Callback latency affects user experience.

3) Self-Hosted SAML/OIDC Implementations

  • Lots of moving pieces (IdP configs, certificates, redirects).
  • Hard to keep in sync across environments.
  • Downtime happens when updating configuration or certificates.

All these approaches share one problem:

SSO is treated like a backend feature… but it should be an edge feature.

Authentication is the first request a user makes.
It must be globally fast and globally available.
This is exactly where Cloudflare Workers shine.


Why Cloudflare Workers Are Ideal for SSO

Cloudflare Workers provide a serverless execution environment inside Cloudflare’s 200+ edge locations. That means SSOJet runs logic almost next to the user—not thousands of miles away.

Here’s why that matters:

⚡ Zero Cold Starts

Unlike AWS Lambda, Workers don’t spin up containers.
SAML or OIDC endpoints execute instantly.

Global Edge Network

Your /authorize, /callback, /saml/acs, /metadata, /userinfo endpoints run worldwide.

Built-in Caching & Key-Value Storage

Cloudflare KV = perfect for storing tenant IdP metadata.
Cloudflare D1/Durable Objects = ideal for storing dynamic configs and sessions.

Security Layer Included

Workers run behind:

  • Cloudflare WAF
  • Bot detection
  • DDoS mitigation
  • Rate limiting

You get enterprise-grade security "by default."

📈 Massive Scalability

Workers scale automatically with traffic.
Even if 10,000 users hit the login page at once, nothing breaks.

This creates the foundation for SSOJet’s High-Availability SSO architecture.


SSOJet’s Edge-Based Authentication Architecture

Below is a conceptual (text-based) diagram of how SSOJet runs:

User → Cloudflare Edge (Worker) 
     → Tenant Resolver (KV + D1)
     → IdP Redirect (SAML/OIDC)
     ← Callback to Worker
     → Token Issuer (Edge Signed JWT)
     → SaaS Application

Let’s break this architecture down step-by-step.


1. Edge Authentication Layer (Cloudflare Workers)

Every SSO request—SAML or OIDC—hits our Cloudflare Worker first.

Endpoints include:

  • /authorize (OIDC)
  • /callback
  • /saml/metadata
  • /saml/acs
  • /login
  • /logout

The Worker detects:

  • Which tenant is being accessed
  • Which SSO provider is configured
  • Whether the user should be routed to OAuth, SAML, or Magic Link
  • Security requirements (MFA, risk score, CAPTCHA)

This all happens at the edge, within ~10–20ms.


2. Multi-Tenant Configuration Layer (KV + D1)

SSOJet supports multi-tenant SaaS products, where each customer uses:

  • Their own IdP (Azure AD, Okta, Google, ADFS, JumpCloud, Ping, etc.)
  • Their own SAML metadata
  • Their own OIDC secrets
  • Their own SCIM configuration

To serve this instantly, we store:

Cloudflare KV (Static Data)

  • SAML metadata XML
  • Certificates
  • IdP URLs
  • Provider-specific settings

KV replicates globally → reads are extremely fast.

Cloudflare D1 (Dynamic Data)

  • Tenant settings
  • Enabled/disabled features
  • Allowed domains
  • Branding
  • User session configurations

This combo allows SSOJet to resolve any tenant from anywhere on the planet with minimal latency.


3. Session & Token Layer (Durable Objects + JWT)

Durable Objects:

Ideal for:

  • Managing per-user sessions
  • Tracking login state during OAuth and SAML flows
  • Ensuring consistency during redirects

Edge JWT Signing:

We generate and sign tokens directly on the edge:

  • Access tokens
  • ID tokens
  • Session cookies

No server calls required.
No latency.
No downtime.


4. Failover & High Availability Strategy

SSOJet achieves true high availability because:

1. Authentication runs on 200+ global edge nodes

Even if an entire region goes down, authentication still works elsewhere.

2. KV is globally replicated

SAML metadata & IdP configs are never unavailable.

3. D1 has fallback logic

If write region is slow, read requests still work.

4. No centralized servers to break

No EC2, no Kubernetes, no regional load balancers.

5. Dynamic routing based on user’s email domain

Automatic routing to correct IDP → even during outages.

This results in near-perfect uptime for SSO flows, even during:

  • Cloud provider outages
  • Traffic spikes
  • Deployment errors
  • Regional failures

SSO Flow Example: How Authentication Works at the Edge

Let’s walk through a typical SAML login.


Step 1 — User Opens SaaS App

SaaS redirects user to:

https://auth.ssojet.com/login?tenant=acme

Step 2 — Worker Identifies Tenant

Worker pulls:

  • Tenant configuration from D1
  • SAML metadata from KV

Latency: 3–5ms


Step 3 — Worker Redirects User to IdP

Worker constructs the SAML AuthnRequest and redirects to:

  • Azure AD / Okta / Google / Ping / JumpCloud, etc.

This is signed at the edge.


Step 4 — User Authenticates at IdP

SSOJet is not involved here.


Step 5 — IdP Sends Response to /saml/acs

SSOJet Worker:

  • Validate SAML response
  • Send valid SAML response to SSOJet server
  • Extracts attributes
  • Performs domain validation
  • Applies security checks
  • Creates session

Step 6 — Worker Generates JWT & Redirects User

User is redirected to the SaaS app with:

  • id_token
  • access_token
  • or session cookie

All issued at the edge for minimal latency.


Performance Benchmarks (Internal Tests)

Across 10,000 SSO authentication events:

Operation Avg Latency
KV read for metadata 2–4 ms
D1 read for tenant 5–9 ms
Worker execution 10–20 ms
Total SAML flow (edge portions) < 80 ms
Total OIDC flow (edge portions) < 40 ms

End-to-end SSO times depend on IdP (Azure AD, Okta = 200–500ms),
but SSOJet adds almost no overhead.


Why SaaS Companies Choose SSOJet for Edge-Based SSO

1. No downtime

If the cloud goes down, SSO stays online.

2. Faster global authentication

Edge execution = logins are closer to the user.

3. Lower total cost

No need for:

  • Load balancers
  • Kubernetes clusters
  • Dedicated auth servers

4. Multi-tenant prepared

Each customer has isolated identities & configs.

5. SCIM-ready

Our Workers architecture also powers SCIM provisioning on the edge.

6. Developer-friendly

Simple SDKs and API-first approach for easy integration.


Conclusion

Authentication shouldn’t live in a single region.
It shouldn’t depend on a centralized server.
And it definitely shouldn’t be slow.

By building SSOJet on top of Cloudflare Workers, KV, Durable Objects, and D1, we’ve created a globally distributed authentication engine that delivers:

  • High availability
  • Low latency
  • Enterprise-grade security
  • Multi-tenant flexibility

If you’re building a SaaS product and want fast, reliable SSO for your customers, the edge is the only place to run it.

SSOJet makes that easy.

*** This is a Security Bloggers Network syndicated blog from SSOJet - Enterprise SSO &amp; Identity Solutions authored by SSOJet - Enterprise SSO & Identity Solutions. Read the original post at: https://ssojet.com/blog/how-ssojet-uses-cloudflare-workers-to-deliver-high-availability-sso-for-saas-apps

December 1, 2025December 1, 2025 SSOJet - Enterprise SSO & Identity Solutions Cloudflare D1 identity storage, Cloudflare identity management, Cloudflare KV authentication, Cloudflare SSO architecture, Cloudflare Workers authentication best practices, Cloudflare Workers SSO, distributed SSO service, Durable Objects sessions, edge authentication, edge-based OIDC flows, edge-based SAML flows, enterprise SSO for SaaS, global SSO performance, high availability SSO, low latency login, multi-tenant SSO, OIDC authentication at the edge, SaaS SSO platform, SAML on Cloudflare Workers, serverless identity, serverless SSO implementation, SSOJet Cloudflare
  • ← Say Hello to Ask Pepper AI: Turning API Security into a Conversation
  • Top 10 Cyberattacks of 2025 →

Techstrong TV

Click full-screen to enable volume control
Watch latest episodes and shows

Tech Field Day Events

Upcoming Webinars

Agentic Software Delivery in 2026: How To Bridge The Gap Between AI Ambition and Delivery Confidence
Untangling the EU Cyber Resilience Act
The Software Supply Chain Just Got Harder to See
Building a Resilient Security Culture in the AI Era with AWS & Datadog
Toxic Flows: When Your Agent Skill Becomes a Supply Chain Attack

Podcast

Listen to all of our podcasts

Secure by Design

2 weeks ago | Jack Poller

Senator Sanders Wants to Own AI Companies — and Hand America’s Adversaries the Keys

3 weeks ago | Jack Poller

NIST’s Nine: The PQC Signature Race Moves to Round Three

3 weeks ago | Jack Poller

The Quantum Arms Race: Why Washington Just Wrote a $2 Billion Check to Nine Companies

4 weeks ago | Jack Poller

Beyond Moore’s Law: The Hyper-Acceleration of Autonomous AI Cyber Capabilities

1 month ago | Jack Poller

The Exception Economy: When Security Teams Stop Protecting and Start Negotiating

Press Releases

GoPlus's Latest Report Highlights How Blockchain Communities Are Leveraging Critical API Security Data To Mitigate Web3 Threats

GoPlus’s Latest Report Highlights How Blockchain Communities Are Leveraging Critical API Security Data To Mitigate Web3 Threats

C2A Security’s EVSec Risk Management and Automation Platform Gains Traction in Automotive Industry as Companies Seek to Efficiently Meet Regulatory Requirements

C2A Security’s EVSec Risk Management and Automation Platform Gains Traction in Automotive Industry as Companies Seek to Efficiently Meet Regulatory Requirements

Zama Raises $73M in Series A Lead by Multicoin Capital and Protocol Labs to Commercialize Fully Homomorphic Encryption

Zama Raises $73M in Series A Lead by Multicoin Capital and Protocol Labs to Commercialize Fully Homomorphic Encryption

RSM US Deploys Stellar Cyber Open XDR Platform to Secure Clients

RSM US Deploys Stellar Cyber Open XDR Platform to Secure Clients

ThreatHunter.ai Halts Hundreds of Attacks in the past 48 hours: Combating Ransomware and Nation-State Cyber Threats Head-On

ThreatHunter.ai Halts Hundreds of Attacks in the past 48 hours: Combating Ransomware and Nation-State Cyber Threats Head-On

Subscribe to our Newsletters

Most Read on the Boulevard

Oracle Issues Emergency Guidance as PeopleSoft Flaw Linked to Widespread Data Theft
ServiceNow Fixes Flaw That Could Lead to Unauthorized Access to Instances
Futurum Group Report Sees Cybersecurity Spending Reaching $521.7B by 2031
HackerOne Unveils Agentic AI Platform to Discover and Validate Vulnerabilities Faster
Survey: Organizations Take Too Long to Fix Application Vulnerabilities
Top 8 AI App Dev Platforms in 2026
Atomic Arch npm Campaign Adds Malicious Dependency
CISA BOD 26-04: Frequently asked questions about the new risk-based patching directive
Top 8 AI App Security Software in 2026
Iranian Cyber Group Handala Claims Cal Water Hack

Industry Spotlight

Anthropic Mythos AI Model Strikes Fear in Trump Administration, U.S. Banks
Cloud Security Cybersecurity Data Privacy Data Security Featured Incident Response Industry Spotlight Malware Mobile Security Network Security News Security Awareness Security Boulevard (Original) Social - Facebook Social - LinkedIn Social - X Spotlight Threats & Breaches Vulnerabilities 

Anthropic Mythos AI Model Strikes Fear in Trump Administration, U.S. Banks

April 12, 2026 Jeffrey Burt | Apr 12 Comments Off on Anthropic Mythos AI Model Strikes Fear in Trump Administration, U.S. Banks
The Day the Security Music Died
AI and Machine Learning in Security Cybersecurity Featured Industry Spotlight Security Boulevard (Original) Social - Facebook Social - LinkedIn Social - X Spotlight 

The Day the Security Music Died

April 8, 2026 Alan Shimel | Apr 08 Comments Off on The Day the Security Music Died
The Lock, Not the Alarm: How Palo Alto’s Koi Acquisition Rewrites Endpoint Security
Featured Industry Spotlight Security Boulevard (Original) Social - Facebook Social - LinkedIn Social - X Spotlight Uncategorized 

The Lock, Not the Alarm: How Palo Alto’s Koi Acquisition Rewrites Endpoint Security

February 18, 2026 Jack Poller | Feb 18 Comments Off on The Lock, Not the Alarm: How Palo Alto’s Koi Acquisition Rewrites Endpoint Security

Top Stories

SailPoint Acquires Entro to Continuously Detect and Monitor Non-Human Identities
AI and Machine Learning in Security AI and ML in Security Cybersecurity Featured News Security Boulevard (Original) Social - Facebook Social - LinkedIn Social - X Spotlight 

SailPoint Acquires Entro to Continuously Detect and Monitor Non-Human Identities

June 16, 2026 Michael Vizard | 59 minutes ago 0
Google Sues Chinese Threat Group Using Gemini AI in Phishing Scams
Cloud Security Cybersecurity Data Privacy Data Security Endpoint Featured Identity & Access Mobile Security Network Security News Security Boulevard (Original) Social - Facebook Social - LinkedIn Social - X Spotlight Threat Intelligence Threats & Breaches 

Google Sues Chinese Threat Group Using Gemini AI in Phishing Scams

June 14, 2026 Jeffrey Burt | Yesterday 0
ServiceNow Fixes Flaw That Could Lead to Unauthorized Access to Instances
Cloud Security Cybersecurity Data Privacy Data Security Featured Identity & Access Incident Response Mobile Security Network Security News Security Awareness Security Boulevard (Original) Social - Facebook Social - LinkedIn Social - X Spotlight Vulnerabilities 

ServiceNow Fixes Flaw That Could Lead to Unauthorized Access to Instances

June 11, 2026 Jeffrey Burt | 4 days ago 0

Security Humor

Randall Munroe’s XKCD 'Soniferous Aether'

Randall Munroe’s XKCD ‘Soniferous Aether’

Download Free eBook

[su_panel border="0px solid #ddd" radius="0" text_align="center" padding-top="0px" padding-bottom="0px"]
The State of Cloud Native Security 2020
[/su_panel]

Security Boulevard Logo White

DMCA

Join the Community

  • Add your blog to Security Creators Network
  • Write for Security Boulevard
  • Bloggers Meetup and Awards
  • Ask a Question
  • Email: [email protected]

Useful Links

  • About
  • Media Kit
  • Sponsor Info
  • Copyright
  • TOS
  • DMCA Compliance Statement
  • Privacy Policy

Related Sites

  • Techstrong Group
  • Cloud Native Now
  • DevOps.com
  • Digital CxO
  • Techstrong Research
  • Techstrong TV
  • Techstrong.tv Podcast
  • DevOps Chat
  • DevOps Dozen
  • DevOps TV
Powered by Techstrong Group
Copyright © 2026 Techstrong Group Inc. All rights reserved.
×

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.