Skip to main content

Software Development Kit (SDK)

The Ory Hydra SDK allows for integration with a self-hosted Ory Hydra OAuth2 Server.

Before using the SDK, consult the Ory Hydra REST API documentation, which includes code samples and examples for various programming languages.

To view the source code for the generated SDKs, visit the Ory Hydra SDKs GitHub repository.

info

The ory-client SDK works with self-hosted Ory services, but due to different release cycles it is recommended to use hydra-client with self-hosted Ory Hydra.

Download the SDK

Ory publishes SDKs for popular languages in their respective package repositories:

tip

Missing your programming language?
Create an issue and help the Ory team build, test, and publish the SDK for your programming language!

Handling OAuth2 flows

The Ory Hydra SDK doesn't provide a comprehensive API for handling OAuth 2.0 flows such as the authorization code flow and refresh flow. Use one of the many well-established libraries for this purpose, don't write your own code to interact with OAuth 2.0.

Read the OAuth2 client libraries document for more information.

SDK backward compatibility

The Ory SDK uses automated code generation by openapi-generator. openapi-generator can make changes to the generated code with each new version, which breaks backwards compatibility in some cases. As a result, Ory SDK may not be compatible with previous versions.