Cyber Research Wiki

Ory Hydra

Ory Hydra is an open-source, OpenID Certified OAuth 2.0 and OpenID Connect (OIDC) authorization server that exposes headless APIs for issuing and managing tokens used to protect APIs and applications.

Overview

In API security discourse, “Hydra” typically denotes Ory Hydra, not the unrelated THC Hydra password brute‑forcer. Ory Hydra implements the authorization server role for OAuth 2.0 and the OpenID Provider (OP) role for OIDC. It emphasizes standards conformance, scalability, and API‑first operation, delegating end‑user interactions to external systems. Rather than providing identity management or UI, Hydra integrates with an external identity provider or a custom login/consent application to perform authentication and consent, while it focuses on token issuance, discovery, and key management required to secure APIs and applications.

What It Is

How It Works

Hydra exposes two distinct API surfaces. The Public API handles authorization, token issuance, discovery, logout, and revocation. The Admin API governs client lifecycle, token introspection, cryptographic key management, and callbacks that accept or deny login/consent challenges. End‑user authentication and consent are externalized: a separate login/consent application authenticates users against an identity store (such as an IdP or Ory Kratos) and then signals Hydra via the Admin API with the subject and approved scopes/claims. Hydra signs tokens and publishes public keys through standard OIDC discovery and JWKS endpoints, enabling resource servers to validate JWTs locally. Depending on deployment choices, resource servers can also query token state via introspection. Hydra supports dynamic client registration, OIDC discovery metadata publication, and JSON Web Key generation and rotation through administrative endpoints.

Core Concepts

Typical Workflow

Use Cases

Limitations

Related Tools

Evidence Gaps

Sources

Confidence

high