ory-hydra-client
OryHydraClient - the Ruby gem for the ORY Hydra
Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here.
This SDK is automatically generated by the OpenAPI Generator project:
- API version: latest
- Package version: v1.4.10
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
Installation
Build a gem
To build the Ruby code into a gem:
gem build ory-hydra-client.gemspec
Then either install the gem locally:
gem install ./ory-hydra-client-v1.4.10.gem
(for development, run gem install --dev ./ory-hydra-client-v1.4.10.gem
to install the development dependencies)
or publish the gem to a gem hosting service, e.g. RubyGems.
Finally add this to the Gemfile:
gem 'ory-hydra-client', '~> v1.4.10'
Install from Git
If the Ruby gem is hosted at a git repository: https://github.com/ory/sdk, then add the following in the Gemfile:
gem 'ory-hydra-client', :git => 'https://github.com/ory/sdk.git'
Include the Ruby code directly
Include the Ruby code directly using -I
as follows:
ruby -Ilib script.rb
Getting Started
Please follow the installation procedure and then run the following code:
# Load the gem
require 'ory-hydra-client'
api_instance = OryHydraClient::AdminApi.new
= 'consent_challenge_example' # String |
opts = {
body: OryHydraClient::AcceptConsentRequest.new # AcceptConsentRequest |
}
begin
#Accept a consent request
result = api_instance.(, opts)
p result
rescue OryHydraClient::ApiError => e
puts "Exception when calling AdminApi->accept_consent_request: #{e}"
end
Documentation for API Endpoints
All URIs are relative to http://localhost
Class | Method | HTTP request | Description |
---|---|---|---|
OryHydraClient::AdminApi | accept_consent_request | PUT /oauth2/auth/requests/consent/accept | Accept a consent request |
OryHydraClient::AdminApi | accept_login_request | PUT /oauth2/auth/requests/login/accept | Accept a login request |
OryHydraClient::AdminApi | accept_logout_request | PUT /oauth2/auth/requests/logout/accept | Accept a logout request |
OryHydraClient::AdminApi | create_json_web_key_set | POST /keys/set | Generate a new JSON Web Key |
OryHydraClient::AdminApi | create_o_auth2_client | POST /clients | Create an OAuth 2.0 client |
OryHydraClient::AdminApi | delete_json_web_key | DELETE /keys/set/kid | Delete a JSON Web Key |
OryHydraClient::AdminApi | delete_json_web_key_set | DELETE /keys/set | Delete a JSON Web Key Set |
OryHydraClient::AdminApi | delete_o_auth2_client | DELETE /clients/id | Deletes an OAuth 2.0 Client |
OryHydraClient::AdminApi | flush_inactive_o_auth2_tokens | POST /oauth2/flush | Flush Expired OAuth2 Access Tokens |
OryHydraClient::AdminApi | get_consent_request | GET /oauth2/auth/requests/consent | Get consent request information |
OryHydraClient::AdminApi | get_json_web_key | GET /keys/set/kid | Fetch a JSON Web Key |
OryHydraClient::AdminApi | get_json_web_key_set | GET /keys/set | Retrieve a JSON Web Key Set |
OryHydraClient::AdminApi | get_login_request | GET /oauth2/auth/requests/login | Get a login request |
OryHydraClient::AdminApi | get_logout_request | GET /oauth2/auth/requests/logout | Get a logout request |
OryHydraClient::AdminApi | get_o_auth2_client | GET /clients/id | Get an OAuth 2.0 Client. |
OryHydraClient::AdminApi | get_version | GET /version | Get service version |
OryHydraClient::AdminApi | introspect_o_auth2_token | POST /oauth2/introspect | Introspect OAuth2 tokens |
OryHydraClient::AdminApi | is_instance_alive | GET /health/alive | Check alive status |
OryHydraClient::AdminApi | list_o_auth2_clients | GET /clients | List OAuth 2.0 Clients |
OryHydraClient::AdminApi | list_subject_consent_sessions | GET /oauth2/auth/sessions/consent | Lists all consent sessions of a subject |
OryHydraClient::AdminApi | prometheus | GET /metrics/prometheus | Get snapshot metrics from the Hydra service. If you're using k8s, you can then add annotations to your deployment like so: |
OryHydraClient::AdminApi | reject_consent_request | PUT /oauth2/auth/requests/consent/reject | Reject a consent request |
OryHydraClient::AdminApi | reject_login_request | PUT /oauth2/auth/requests/login/reject | Reject a login request |
OryHydraClient::AdminApi | reject_logout_request | PUT /oauth2/auth/requests/logout/reject | Reject a logout request |
OryHydraClient::AdminApi | revoke_authentication_session | DELETE /oauth2/auth/sessions/login | Invalidates all login sessions of a certain user Invalidates a subject's authentication session |
OryHydraClient::AdminApi | revoke_consent_sessions | DELETE /oauth2/auth/sessions/consent | Revokes consent sessions of a subject for a specific OAuth 2.0 Client |
OryHydraClient::AdminApi | update_json_web_key | PUT /keys/set/kid | Update a JSON Web Key |
OryHydraClient::AdminApi | update_json_web_key_set | PUT /keys/set | Update a JSON Web Key Set |
OryHydraClient::AdminApi | update_o_auth2_client | PUT /clients/id | Update an OAuth 2.0 Client |
OryHydraClient::PublicApi | disconnect_user | GET /oauth2/sessions/logout | OpenID Connect Front-Backchannel enabled Logout |
OryHydraClient::PublicApi | discover_open_id_configuration | GET /.well-known/openid-configuration | OpenID Connect Discovery |
OryHydraClient::PublicApi | is_instance_ready | GET /health/ready | Check readiness status |
OryHydraClient::PublicApi | oauth2_token | POST /oauth2/token | The OAuth 2.0 token endpoint |
OryHydraClient::PublicApi | oauth_auth | GET /oauth2/auth | The OAuth 2.0 authorize endpoint |
OryHydraClient::PublicApi | revoke_o_auth2_token | POST /oauth2/revoke | Revoke OAuth2 tokens |
OryHydraClient::PublicApi | userinfo | GET /userinfo | OpenID Connect Userinfo |
OryHydraClient::PublicApi | well_known | GET /.well-known/jwks.json | JSON Web Keys Discovery |
Documentation for Models
- OryHydraClient::AcceptConsentRequest
- OryHydraClient::AcceptLoginRequest
- OryHydraClient::CompletedRequest
- OryHydraClient::ConsentRequest
- OryHydraClient::ConsentRequestSession
- OryHydraClient::FlushInactiveOAuth2TokensRequest
- OryHydraClient::GenericError
- OryHydraClient::HealthNotReadyStatus
- OryHydraClient::HealthStatus
- OryHydraClient::JSONWebKey
- OryHydraClient::JSONWebKeySet
- OryHydraClient::JsonWebKeySetGeneratorRequest
- OryHydraClient::LoginRequest
- OryHydraClient::LogoutRequest
- OryHydraClient::OAuth2Client
- OryHydraClient::OAuth2TokenIntrospection
- OryHydraClient::Oauth2TokenResponse
- OryHydraClient::OpenIDConnectContext
- OryHydraClient::PreviousConsentSession
- OryHydraClient::RejectRequest
- OryHydraClient::UserinfoResponse
- OryHydraClient::Version
- OryHydraClient::WellKnown
Documentation for Authorization
basic
- Type: HTTP basic authentication
oauth2
- Type: OAuth
- Flow: accessCode
- Authorization URL: /oauth2/auth
- Scopes:
- offline: A scope required when requesting refresh tokens (alias for `offline_access`)
- offline_access: A scope required when requesting refresh tokens
- openid: Request an OpenID Connect ID Token