Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
H

hydra

> DevOps
Open source

Internet-scale OpenID Certified™ OpenID Connect and OAuth2.1 provider that integrates with your user management through headless APIs. Solve OIDC/OAuth2 user ca

17.4K stars0 likes2 views
WebsiteGitHub

About

Internet-scale OpenID Certified™ OpenID Connect and OAuth2.1 provider that integrates with your user management through headless APIs. Solve OIDC/OAuth2 user ca

Chat · Discussions · Newsletter · Docs · Try Ory Network · Jobs

Ory Hydra is a hardened, OpenID Certified OAuth 2.0 Server and OpenID Connect Provider optimized for low-latency, high throughput, and low resource consumption. It connects to your existing identity provider through a login and consent app, giving you absolute control over the user interface and experience.


  • What is Ory Hydra?
    • Why Ory Hydra
    • OAuth2 and OpenID Connect: Open Standards
    • OpenID Connect Certified
  • Deployment options
    • Use Ory Hydra on the Ory Network
    • Self-host Ory Hydra
  • Quickstart
  • Who is using Ory Hydra
  • Ecosystem
    • Ory Kratos: Identity and User Infrastructure and Management
    • Ory Hydra: OAuth2 & OpenID Connect Server
    • Ory Oathkeeper: Identity & Access Proxy
    • Ory Keto: Access Control Policies as a Server
  • Documentation
  • Developing Ory Hydra
  • Security
    • Disclosing vulnerabilities
  • Telemetry
  • Libraries and third-party projects

What is Ory Hydra?

Ory Hydra is a server implementation of the OAuth 2.0 authorization framework and the OpenID Connect Core 1.0. It follows cloud architecture best practices and focuses on:

  • OAuth 2.0 and OpenID Connect flows
  • Token issuance and validation
  • Client management
  • Consent and login flow orchestration
  • JWKS management
  • Low latency and high throughput

We recommend starting with the Ory Hydra introduction docs to learn more about its architecture, feature set, and how it compares to other systems.

Why Ory Hydra

Ory Hydra is designed to:

  • Be a standalone OAuth 2.0 and OpenID Connect server without user management
  • Connect to any existing identity provider through a login and consent app
  • Give you absolute control over the user interface and experience flows
  • Work with any authentication endpoint: Ory Kratos, authboss, User Frosting, or your proprietary system
  • Scale to large numbers of clients and tokens
  • Fit into modern cloud native environments such as Kubernetes and managed platforms

OAuth2 and OpenID Connect: Open Standards

Ory Hydra implements Open Standards set by the IETF:

  • The OAuth 2.0 Authorization Framework
  • OAuth 2.0 Threat Model and Security Considerations
  • OAuth 2.0 Token Revocation
  • OAuth 2.0 Token Introspection
  • OAuth 2.0 for Native Apps
  • OAuth 2.0 Dynamic Client Registration Protocol
  • OAuth 2.0 Dynamic Client Registration Management Protocol
  • Proof Key for Code Exchange by OAuth Public Clients
  • JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants

and the OpenID Foundation:

  • OpenID Connect Core 1.0
  • OpenID Connect Discovery 1.0
  • OpenID Connect Dynamic Client Registration 1.0
  • OpenID Connect Front-Channel Logout 1.0
  • OpenID Connect Back-Channel Logout 1.0

OpenID Connect Certified

Ory Hydra is an OpenID Foundation certified OpenID Provider (OP).

The following OpenID profiles are certified:

  • Basic OpenID Provider (response types code)
  • Implicit OpenID Provider (response types id_token, id_token+token)
  • Hybrid OpenID Provider (response types code+id_token, code+id_token+token, code+token)
  • OpenID Provider Publishing Configuration Information
  • Dynamic OpenID Provider

To obtain certification, we deployed the reference user login and consent app (unmodified) and Ory Hydra v1.0.0.

Deployment options

You can run Ory Hydra in two main ways:

  • As a managed service on the Ory Network
  • As a self hosted service under your own control, with or without the Ory Enterprise License

Use Ory Hydra on the Ory Network

The Ory Network is the fastest way to use Ory services in production. Ory OAuth2 & OpenID Connect is powered by the open source Ory Hydra server and is API compatible.

The Ory Network provides:

  • OAuth2 and OpenID Connect for single sign on, API access, and machine to machine authorization
  • Identity and credential management that scales to billions of users and devices
  • Registration, login, and account management flows for passkeys, biometrics, social login, SSO, and multi factor authentication
  • Prebuilt login, registration, and account management pages and components
  • Low latency permission checks based on the Zanzibar model with the Ory Permission Language
  • GDPR friendly storage with data locality and compliance in mind
  • Web based Ory Console and Ory CLI for administration and operations
  • Cloud native APIs compatible with the open source servers
  • Fair, usage based pricing

Sign up for a free developer account to get started.

Self-host Ory Hydra

You can run Ory Hydra yourself for full control over infrastructure, deployment, and customization.

The install guide explains how to:

  • Install Hydra on Linux, macOS, Windows, and Docker
  • Configure databases such as PostgreSQL, MySQL, and CockroachDB
  • Deploy to Kubernetes and other orchestration systems
  • Build Hydra from source

This guide uses the open source distribution to get you started without license requirements. It is a great fit for individuals, researchers, hackers, and companies that want to experiment, prototype, or run unimportant workloads without SLAs. You get the full core engine, and you are free to inspect, extend, and build it from source.

If you run Hydra as part of a business-critical system, for example OAuth2 and OpenID Connect for all your users, you should use a commercial agreement to reduce operational and security risk. The Ory Enterprise License (OEL) layers on top of self-hosted Hydra and provides:

  • Additional enterprise features that are not available in the open source version
  • Regular security releases, including CVE patches, with service level agreements
  • Support for advanced scaling, multi-tenancy, and complex deployments
  • Premium support options with SLAs, direct access to engineers, and onboarding help
  • Access to a private Docker registry with frequent and vetted, up-to-date enterprise builds

For guaranteed CVE fixes, current enterprise builds, advanced features, and support in production, you need a valid Ory Enterprise License and access to the Ory Enterprise Docker registry. To learn more, contact the Ory team.

Quickstart

Install the Ory CLI and create a new project to try Ory OAuth2 & OpenID Connect.

bash
# Install the Ory CLI if you do not have it yet:
bash <(curl https://raw.githubusercontent.com/ory/meta/master/install.sh) -b . ory
sudo mv ./ory /usr/local/bin/

# Sign in or sign up
ory auth

# Create a new project
ory create project --create-workspace "Ory Open Source" --name "GitHub Quickstart" --use-project

Try out the OAuth 2.0 Client Credentials flow:

bash
ory create oauth2-client \
    --name "Client Credentials Demo" \
    --grant-type client_credentials
# Note the client ID and secret from output

ory perform client-credentials \
    --client-id <your-client-id> \
    --client-secret <your-client-secret>
# Note the access token from output

ory introspect token <your-access-token>

Try out the OAuth 2.0 Authorize Code + OpenID Connect flow:

bash
ory create oauth2-client \
    --name "Authorize Code with OpenID Connect Demo" \
    --grant-type authorization_code,refresh_token \
    --response-type code \
    --redirect-uri http://127.0.0.1:4446/callback

ory perform authorization-code \
    --client-id <your-client-id> \
    --client-secret <your-client-secret>

Who is using Ory Hydra

The Ory community stands on the shoulders of individuals, companies, and maintainers. The Ory team thanks everyone involved - from submitting bug reports and feature requests, to contributing patches and documentation. The Ory community counts more than 50.000 members and is growing. The Ory stack protects 7.000.000.000+ API requests every day across thousands of companies. None of this would have been possible without each and everyone of you!

The following list represents companies that have accompanied us along the way and that have made outstanding contributions to our ecosystem. If you think that your company deserves a spot here, reach out to [email protected] now!

Name Logo Website Case Study
OpenAI
            </picture>
        </td>
        <td><a href="https://openai.com/">openai.com</a></td>
        <td><a href="https://www.ory.com/case-studies/openai">OpenAI Case Study</a></td>
    </tr>
    <tr>
        <td>Fandom</td>
        <td align="center">
            <picture>
                <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/ory/meta/master/static/adopters/light/fandom.svg" />
                
            </picture>
        </td>
        <td><a href="https://www.fandom.com/">fandom.com</a></td>
        <td><a href="https://www.ory.com/case-studies/fandom">Fandom Case Study</a></td>
    </tr>
    <tr>
        <td>Lumin</td>
        <td

Issues· 95 open

View all issuesOpen on GitHub
  • #4029

    Support unsetting `jwks_uri` from `.well-known/openid-configuration` endpoint

    featstaleUpdated Sep 27, 2026
  • #4130

    serve.admin.request_log.disable_for_health has no effect: health paths missing /admin prefix in exclusion list

    Needs TriageUpdated Sep 26, 2026
  • #3829

    Incorrect Handling of Scopes with Special Character "|" in scp Claim

    bugUpdated Sep 20, 2026
  • #4026

    Add Janitor removing expired tokens by client_secret_expires_at

    featstaleUpdated Sep 13, 2026
  • #4127

    Support localhost redirection with arbitrary port

    featUpdated Sep 9, 2026
  • #4061

    Support "Client ID Metadata Document" (CIMD)

    featUpdated Sep 9, 2026
  • #4126

    Accepting login challenge with `remember: true, remember_for: 0` creates cookie with 30-day expiration

    bugUpdated Sep 8, 2026
  • #4091

    Post Quantum Roadmap

    featUpdated Aug 27, 2026
  • #3990

    Support JWKS_URI for trust grant issuer

    featstaleUpdated Aug 22, 2026
  • #3132

    Cannot force front/back-channel logout with id_token_hint when "Remember Me" is off

    bugUpdated Aug 5, 2026

> Tags

Goauthorizationclouddockerfederation

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
CategoryDevOps
PricingOpen source

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理