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′.
To view the source code for the generated SDKs, visit the Ory Hydra SDKs GitHub repository. Ory SDKs are generated using the openapi-generator.
Download the SDK
Ory publishes SDKs for popular languages in their respective package repositories:
- Dart
- .NET
- Elixir
- Go
- Java
- JavaScript with TypeScript definitions and compatible with Node.js, React.js, Angular, Vue.js, and many more.
- PHP
- Python
- Ruby
- Rust
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.