#client #api-client #hydra

ory-hydra-client

SDK Client for Ory Hydra

11 stable releases

2.2.0 Feb 12, 2024
2.2.0-rc.3 Aug 14, 2023
2.1.1 Apr 11, 2023
1.11.8 May 4, 2022
1.10.3 May 10, 2021

#70 in Authentication

Download history 542/week @ 2024-07-23 1070/week @ 2024-07-30 1149/week @ 2024-08-06 649/week @ 2024-08-13 602/week @ 2024-08-20 732/week @ 2024-08-27 2774/week @ 2024-09-03 651/week @ 2024-09-10 481/week @ 2024-09-17 888/week @ 2024-09-24 1389/week @ 2024-10-01 716/week @ 2024-10-08 1334/week @ 2024-10-15 1019/week @ 2024-10-22 984/week @ 2024-10-29 1229/week @ 2024-11-05

4,764 downloads per month

Apache-2.0

245KB
3K SLoC

Rust API client for ory-hydra-client

Documentation for all of Ory Hydra's APIs.

Overview

This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.

  • API version: v2.2.0
  • Package version: v2.2.0
  • Build package: org.openapitools.codegen.languages.RustClientCodegen

Installation

Put the package under your project folder in a directory named ory-hydra-client and add the following to Cargo.toml under [dependencies]:

ory-hydra-client = { path = "./ory-hydra-client" }

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
JwkApi create_json_web_key_set POST /admin/keys/{set} Create JSON Web Key
JwkApi delete_json_web_key DELETE /admin/keys/{set}/{kid} Delete JSON Web Key
JwkApi delete_json_web_key_set DELETE /admin/keys/{set} Delete JSON Web Key Set
JwkApi get_json_web_key GET /admin/keys/{set}/{kid} Get JSON Web Key
JwkApi get_json_web_key_set GET /admin/keys/{set} Retrieve a JSON Web Key Set
JwkApi set_json_web_key PUT /admin/keys/{set}/{kid} Set JSON Web Key
JwkApi set_json_web_key_set PUT /admin/keys/{set} Update a JSON Web Key Set
MetadataApi get_version GET /version Return Running Software Version.
MetadataApi is_alive GET /health/alive Check HTTP Server Status
MetadataApi is_ready GET /health/ready Check HTTP Server and Database Status
OAuth2Api accept_o_auth2_consent_request PUT /admin/oauth2/auth/requests/consent/accept Accept OAuth 2.0 Consent Request
OAuth2Api accept_o_auth2_login_request PUT /admin/oauth2/auth/requests/login/accept Accept OAuth 2.0 Login Request
OAuth2Api accept_o_auth2_logout_request PUT /admin/oauth2/auth/requests/logout/accept Accept OAuth 2.0 Session Logout Request
OAuth2Api create_o_auth2_client POST /admin/clients Create OAuth 2.0 Client
OAuth2Api delete_o_auth2_client DELETE /admin/clients/{id} Delete OAuth 2.0 Client
OAuth2Api delete_o_auth2_token DELETE /admin/oauth2/tokens Delete OAuth 2.0 Access Tokens from specific OAuth 2.0 Client
OAuth2Api delete_trusted_o_auth2_jwt_grant_issuer DELETE /admin/trust/grants/jwt-bearer/issuers/{id} Delete Trusted OAuth2 JWT Bearer Grant Type Issuer
OAuth2Api get_o_auth2_client GET /admin/clients/{id} Get an OAuth 2.0 Client
OAuth2Api get_o_auth2_consent_request GET /admin/oauth2/auth/requests/consent Get OAuth 2.0 Consent Request
OAuth2Api get_o_auth2_login_request GET /admin/oauth2/auth/requests/login Get OAuth 2.0 Login Request
OAuth2Api get_o_auth2_logout_request GET /admin/oauth2/auth/requests/logout Get OAuth 2.0 Session Logout Request
OAuth2Api get_trusted_o_auth2_jwt_grant_issuer GET /admin/trust/grants/jwt-bearer/issuers/{id} Get Trusted OAuth2 JWT Bearer Grant Type Issuer
OAuth2Api introspect_o_auth2_token POST /admin/oauth2/introspect Introspect OAuth2 Access and Refresh Tokens
OAuth2Api list_o_auth2_clients GET /admin/clients List OAuth 2.0 Clients
OAuth2Api list_o_auth2_consent_sessions GET /admin/oauth2/auth/sessions/consent List OAuth 2.0 Consent Sessions of a Subject
OAuth2Api list_trusted_o_auth2_jwt_grant_issuers GET /admin/trust/grants/jwt-bearer/issuers List Trusted OAuth2 JWT Bearer Grant Type Issuers
OAuth2Api o_auth2_authorize GET /oauth2/auth OAuth 2.0 Authorize Endpoint
OAuth2Api oauth2_token_exchange POST /oauth2/token The OAuth 2.0 Token Endpoint
OAuth2Api patch_o_auth2_client PATCH /admin/clients/{id} Patch OAuth 2.0 Client
OAuth2Api reject_o_auth2_consent_request PUT /admin/oauth2/auth/requests/consent/reject Reject OAuth 2.0 Consent Request
OAuth2Api reject_o_auth2_login_request PUT /admin/oauth2/auth/requests/login/reject Reject OAuth 2.0 Login Request
OAuth2Api reject_o_auth2_logout_request PUT /admin/oauth2/auth/requests/logout/reject Reject OAuth 2.0 Session Logout Request
OAuth2Api revoke_o_auth2_consent_sessions DELETE /admin/oauth2/auth/sessions/consent Revoke OAuth 2.0 Consent Sessions of a Subject
OAuth2Api revoke_o_auth2_login_sessions DELETE /admin/oauth2/auth/sessions/login Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID
OAuth2Api revoke_o_auth2_token POST /oauth2/revoke Revoke OAuth 2.0 Access or Refresh Token
OAuth2Api set_o_auth2_client PUT /admin/clients/{id} Set OAuth 2.0 Client
OAuth2Api set_o_auth2_client_lifespans PUT /admin/clients/{id}/lifespans Set OAuth2 Client Token Lifespans
OAuth2Api trust_o_auth2_jwt_grant_issuer POST /admin/trust/grants/jwt-bearer/issuers Trust OAuth2 JWT Bearer Grant Type Issuer
OidcApi create_oidc_dynamic_client POST /oauth2/register Register OAuth2 Client using OpenID Dynamic Client Registration
OidcApi create_verifiable_credential POST /credentials Issues a Verifiable Credential
OidcApi delete_oidc_dynamic_client DELETE /oauth2/register/{id} Delete OAuth 2.0 Client using the OpenID Dynamic Client Registration Management Protocol
OidcApi discover_oidc_configuration GET /.well-known/openid-configuration OpenID Connect Discovery
OidcApi get_oidc_dynamic_client GET /oauth2/register/{id} Get OAuth2 Client using OpenID Dynamic Client Registration
OidcApi get_oidc_user_info GET /userinfo OpenID Connect Userinfo
OidcApi revoke_oidc_session GET /oauth2/sessions/logout OpenID Connect Front- and Back-channel Enabled Logout
OidcApi set_oidc_dynamic_client PUT /oauth2/register/{id} Set OAuth2 Client using OpenID Dynamic Client Registration
WellknownApi discover_json_web_keys GET /.well-known/jwks.json Discover Well-Known JSON Web Keys

Documentation For Models

To get access to the crate's generated documentation, use:

cargo doc --open

Author

hi@ory.sh

Dependencies

~5–16MB
~223K SLoC