Ory logo
background color

Ory Hydra The cloud native OAuth 2.0 server and OpenID Connect provider.

The cloud-native, OpenID Certified® OAuth 2.0 server. Issue access tokens, secure APIs, and federate identity across third-party apps — without writing protocol code yourself.

Existing OAuth and OpenID Connect solutions lack flexibility and granular control, limiting adaptability to specific business needs. Ory Hydra — the open-source, OpenID Certified® OAuth 2.0 server — integrates with your infrastructure, giving you complete control over how access tokens are issued, scoped, and validated.

Need support?

Run Ory Hydra on your own infrastructure with commercial support, SLA-backed responses, and CVE patching from the team that builds it.

Need to move quickly?

Skip the operational overhead — get a production-ready, OpenID Certified® OAuth 2.0 server as a fully managed service on Ory Network.

Millions of users. Unlimited scale.

Ory Hydra powers OAuth 2.0 and OpenID Connect for systems with millions of users, serving thousands of token issuances per second.

SDKs for every stack

Hydra is written in Go with official SDKs for every major language — .NET, Java, Node.js, PHP, Python, Ruby, Rust, Dart, and TypeScript. It works with any login system and integrates with your existing identity provider, so engineers can add OAuth 2.0 in hours, not weeks.

OpenID Certified® OAuth 2.0

The most advanced open-source OAuth 2.0 and OpenID Connect server — and the only one OpenID Certified®. Integrates with any login system and federates identity to any application, anywhere.

Powered by Open Source

Ory Hydra offers deployment flexibility. With open source roots, Ory Hydra has grown to offer different models to suit your business needs. Deploy open-source, opt for Ory Enterprise License with additional features, commercial SLAs, and support, or use the fully managed Ory Network for a seamless SaaS experience.

OpenAI wanted a partner that could help enable our vision for owning our identity processes, data, and success. We have a lot of partners, and Ory is one of our best.

See how OpenAI used Ory Hydra to support over 800M weekly active users

OAuth 2.0 and OpenID Connect features for production

  • Full OAuth 2.0 spec coverage

    Implements the complete OAuth 2.0 standard as defined by the IETF — authorization code, client credentials, refresh token, PKCE, and token exchange flows. Integrates with Ory Kratos or any open-source or proprietary identity provider.

  • OpenID Certified®

    The OpenID Foundation has certified Ory Hydra as a conformant OpenID Connect provider. All flows specified by the IETF and OpenID Foundation are implemented and tested against the certification suite.

  • Bring your own UX

    Use your own branding, login screens, and consent pages for every OAuth 2.0 and OpenID Connect flow. Ory Hydra exposes the protocol; you control the UX. Powered by a documented REST API and CLI.

  • Compatible with MITREid

    Drop-in migration path from MITREid Connect. Hydra ships with documentation for migrating client registrations, key material, and active sessions with minimal downtime.

  • Cryptographic key storage

    Cryptographic keys for JWT signing are stored encrypted at rest. Manage OAuth 2.0 clients, rotate signing keys, and issue tokens directly from the CLI or Admin API.

  • Production-grade scale and performance

    Stateless, horizontally scalable architecture. Ory Hydra serves tokens to systems with millions of users and tens of millions of weekly token issuances — battle-tested for security incident reduction and operational simplicity.

How to de-risk identity at scale with Ory

OSS is where most teams start. The question is whether it holds up as scale, compliance, and security requirements grow. Running identity infrastructure yourself means owning everything, from patches to incident response, compliance controls, and performance tuning. At enterprise scale, that overhead competes with product innovation. Ory's commercial offerings, OEL and Ory Network, trade that burden for SLA-backed support, managed CVE patching, and audit-ready controls.

Ory Open Source

Evaluation and prototyping

Continuous Security License

Guaranteed, SLA-backed CVE patching year-round

Ory Enterprise License

Self-hosted, great for enterprises that require greater control (e.g. certified or air-gapped environments, and regulated industries)

Ory Network

Fully-managed, fastest path to production without operational overhead
Cross-platform benefits
Cross-platform benefits
Cross-platform benefits
Cross-platform benefits
Compliance and audit-ready (GDPR, PSD2, PCI-DSS, SOC 2, and others)
Ory Open Source: No
Compliance and audit-ready (GDPR, PSD2, PCI-DSS, SOC 2, and others)
Continuous Security License: No
Compliance and audit-ready (GDPR, PSD2, PCI-DSS, SOC 2, and others)
Compliance-ready
Compliance and audit-ready (GDPR, PSD2, PCI-DSS, SOC 2, and others)
Ory Network: Yes
Global multi-region architecture
Ory Open Source: No
Global multi-region architecture
Continuous Security License: No
Global multi-region architecture
Multi-region capable
Global multi-region architecture
Ory Network: Yes
Purpose-based data retention
Ory Open Source: No
Purpose-based data retention
Continuous Security License: No
Purpose-based data retention
Ory Enterprise License: Yes
Purpose-based data retention
Ory Network: Yes
24/7 SLA support
Ory Open Source: No
24/7 SLA support
Continuous Security License: No
24/7 SLA support
Ory Enterprise License: Yes
24/7 SLA support
Ory Network: Yes
CVE security patching
Ory Open Source: No
CVE security patching
Continuous Security License: Yes
CVE security patching
Ory Enterprise License: Yes
CVE security patching
Ory Network: Yes
Unified control plane for ease of management
Ory Open Source: CLI
Unified control plane for ease of management
Continuous Security License: CLI
Unified control plane for ease of management
Ory Enterprise License: CLI / GUI
Unified control plane for ease of management
Ory Network: CLI / GUI / Terraform provider
Software Bill of Materials
Ory Open Source: Yes
Software Bill of Materials
Continuous Security License: Yes
Software Bill of Materials
Ory Enterprise License: Yes
Software Bill of Materials
Ory Network: Yes
Cryptographic Bill of Materials (CBOM) & Artificial Intelligence Bill of Materials (AIBOM)
Ory Open Source: No
Cryptographic Bill of Materials (CBOM) & Artificial Intelligence Bill of Materials (AIBOM)
Continuous Security License: Yes
Cryptographic Bill of Materials (CBOM) & Artificial Intelligence Bill of Materials (AIBOM)
Ory Enterprise License: Yes
Cryptographic Bill of Materials (CBOM) & Artificial Intelligence Bill of Materials (AIBOM)
Ory Network: Yes
Production Helm Charts
Ory Open Source: No
Production Helm Charts
Continuous Security License: No
Production Helm Charts
Ory Enterprise License: Yes
Production Helm Charts
n/a
Managed infrastructure
Ory Open Source: No
Managed infrastructure
Continuous Security License: No
Managed infrastructure
n/a
Managed infrastructure
Ory Network: Yes
Support Ticketing System
Ory Open Source: No
Support Ticketing System
Continuous Security License: No
Support Ticketing System
Ory Enterprise License: Yes
Support Ticketing System
Ory Network: Yes
Concierge onboarding
Ory Open Source: No
Concierge onboarding
Continuous Security License: No
Concierge onboarding
Ory Enterprise License: Yes
Concierge onboarding
Ory Network: Yes
Dedicated slack channel
Ory Open Source: No
Dedicated slack channel
Continuous Security License: No
Dedicated slack channel
Ory Enterprise License: Yes
Dedicated slack channel
Ory Network: Yes
Premium Features
Ory Open Source: No
Premium Features
Continuous Security License: No
Premium Features
Ory Enterprise License: Yes
Premium Features
Ory Network: Yes
Authorization (Certified OAuth2/OIDC) - Ory Hydra
Authorization (Certified OAuth2/OIDC) - Ory Hydra
Authorization (Certified OAuth2/OIDC) - Ory Hydra
Authorization (Certified OAuth2/OIDC) - Ory Hydra
OAuth 2.0 + OpenID Connect with OAuth 2.1 support*
Ory Open Source: Yes
OAuth 2.0 + OpenID Connect with OAuth 2.1 support*
Continuous Security License: Yes
OAuth 2.0 + OpenID Connect with OAuth 2.1 support*
Ory Enterprise License: Yes
OAuth 2.0 + OpenID Connect with OAuth 2.1 support*
Ory Network: Yes
OpenID Certified®
Ory Open Source: Yes
OpenID Certified®
Continuous Security License: Yes
OpenID Certified®
Ory Enterprise License: Yes
OpenID Certified®
Ory Network: Yes
High performance pooling
Ory Open Source: No
High performance pooling
Continuous Security License: No
High performance pooling
Ory Enterprise License: Yes
High performance pooling
Ory Network: Yes
Stateless JWT access tokens
Ory Open Source: No
Stateless JWT access tokens
Continuous Security License: No
Stateless JWT access tokens
Ory Enterprise License: Yes
Stateless JWT access tokens
Ory Network: Yes
Credential rotation
Ory Open Source: No
Credential rotation
Continuous Security License: No
Credential rotation
Ory Enterprise License: Yes
Credential rotation
Ory Network: Yes
Token exchange
Ory Open Source: No
Token exchange
Continuous Security License: No
Token exchange
Ory Enterprise License: Yes
Token exchange
Ory Network: Yes
Resource Owner Password Credentials (ROPC)
Ory Open Source: No
Resource Owner Password Credentials (ROPC)
Continuous Security License: No
Resource Owner Password Credentials (ROPC)
Ory Enterprise License: Yes
Resource Owner Password Credentials (ROPC)
Ory Network: Yes
Managing Identities - Ory Kratos
Managing Identities - Ory Kratos
Managing Identities - Ory Kratos
Managing Identities - Ory Kratos
High performance pooling
Ory Open Source: No
High performance pooling
Continuous Security License: No
High performance pooling
Ory Enterprise License: Yes
High performance pooling
Ory Network: Yes
B2B Organizations
Ory Open Source: No
B2B Organizations
Continuous Security License: No
B2B Organizations
Ory Enterprise License: Yes
B2B Organizations
Ory Network: Yes
Admin onboarding portal
Ory Open Source: No
Admin onboarding portal
Continuous Security License: No
Admin onboarding portal
Ory Enterprise License: Yes
Admin onboarding portal
Ory Network: Yes
Social single sign-on
Ory Open Source: Yes
Social single sign-on
Continuous Security License: Yes
Social single sign-on
Ory Enterprise License: Yes
Social single sign-on
Ory Network: Yes
Purpose-based data retention
Ory Open Source: No
Purpose-based data retention
Continuous Security License: No
Purpose-based data retention
Ory Enterprise License: Yes
Purpose-based data retention
Ory Network: Yes
CAPTCHA
Ory Open Source: No
CAPTCHA
Continuous Security License: No
CAPTCHA
Ory Enterprise License: Yes
CAPTCHA
Ory Network: Yes
FedCM
Ory Open Source: No
FedCM
Continuous Security License: No
FedCM
Ory Enterprise License: Yes
FedCM
Ory Network: Yes
Advanced identity search
Ory Open Source: No
Advanced identity search
Continuous Security License: No
Advanced identity search
Ory Enterprise License: Yes
Advanced identity search
Ory Network: Yes
B2B Federation - Ory Polis
B2B Federation - Ory Polis
B2B Federation - Ory Polis
B2B Federation - Ory Polis
Custom Branding for Onboarding Portal
Ory Open Source: No
Custom Branding for Onboarding Portal
Continuous Security License: No
Custom Branding for Onboarding Portal
Ory Enterprise License: Yes
Custom Branding for Onboarding Portal
Ory Network: Yes
SAML & OIDC
Ory Open Source: Yes
SAML & OIDC
Continuous Security License: Yes
SAML & OIDC
Ory Enterprise License: Yes
SAML & OIDC
Ory Network: Yes
Directory sync
Ory Open Source: Yes
Directory sync
Continuous Security License: Yes
Directory sync
Ory Enterprise License: Yes
Directory sync
Ory Network: Yes
Identity federation
Ory Open Source: No
Identity federation
Continuous Security License: No
Identity federation
Ory Enterprise License: Yes
Identity federation
Ory Network: Yes
Permissions - Ory Keto
Permissions - Ory Keto
Permissions - Ory Keto
Permissions - Ory Keto
Concierge Onboarding
Ory Open Source: No
Concierge Onboarding
Continuous Security License: No
Concierge Onboarding
Ory Enterprise License: Yes
Concierge Onboarding
Ory Network: Yes
Optimized Permission Checks
Ory Open Source: No
Optimized Permission Checks
Continuous Security License: No
Optimized Permission Checks
Ory Enterprise License: Yes
Optimized Permission Checks
Ory Network: Yes
OPA & RAG Integration
Ory Open Source: No
OPA & RAG Integration
Continuous Security License: No
OPA & RAG Integration
Ory Enterprise License: Yes
OPA & RAG Integration
Ory Network: Yes
Get Started

Ready to try Ory Hydra?

Spin up Ory Hydra locally in under five minutes, or jump to the OAuth 2.0 integration guide if you're scoping a production deployment.

oauth2-client.js
const express = require('express');
const app = express();

const { AuthorizationCode } = require("simple-oauth2")

const client = new AuthorizationCode({
  client: {
    id: process.env.CLIENT_ID,
    secret: process.env.CLIENT_SECRET,
  },
  auth: {
    tokenHost: "https://<your-project>.projects.oryapis.com",
    tokenPath: "/oauth2/token",
    authorizePath: "/oauth2/auth",
  },
})

app.get("/", (req, res) => {
  const authorizationUri = client.authorizeURL({
    redirect_uri: REDIRECT_URI,
    scope: "openid offline",
  })

  res.redirect(authorizationUri)
})

app.get("/callback", async (req, res) => {
  const { code } = req.query

  try {
    const accessToken = await client.getToken({
      code,
      redirect_uri: process.env.REDIRECT_URI,
      scope: "openid offline",
    })

    res.json(accessToken.token)
  } catch (error) {
    res.status(500).json({ error: error.message })
  }
})

More on Ory Hydra

View all Ory Hydra blogs

Ory Hydra FAQ

Try Ory today Start for free