ory_hydra_client 2.2.0

SDKdartflutter
Platformandroidioswindowslinuxmacosweb

OpenAPI API client for Ory Hydra, Ory's open source OpenID Connect and OAuth provider.

ory_hydra_client (EXPERIMENTAL)

Documentation for all of Ory Hydra's APIs.

This Dart package is automatically generated by the OpenAPI Generator project:

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

Requirements

Installation & Usage

pub.dev

To use the package from pub.dev, please include the following in pubspec.yaml

dependencies:
  ory_hydra_client: 2.2.0

Github

If this Dart package is published to Github, please include the following in pubspec.yaml

dependencies:
  ory_hydra_client:
    git:
      url: https://github.com/ory/sdk.git
      #ref: main

Local development

To use the package from your local drive, please include the following in pubspec.yaml

dependencies:
  ory_hydra_client:
    path: /path/to/ory_hydra_client

Getting Started

Please follow the installation procedure and then run the following:

import 'package:ory_hydra_client/ory_hydra_client.dart';


final api = OryHydraClient().getJwkApi();
final String set_ = set__example; // String | The JSON Web Key Set ID
final CreateJsonWebKeySet createJsonWebKeySet = ; // CreateJsonWebKeySet | 

try {
    final response = await api.createJsonWebKeySet(set_, createJsonWebKeySet);
    print(response);
} catch on DioError (e) {
    print("Exception when calling JwkApi->createJsonWebKeySet: $e\n");
}

Documentation for API Endpoints

All URIs are relative to http://localhost

ClassMethodHTTP requestDescription
JwkApicreateJsonWebKeySetPOST /admin/keys/{set}Create JSON Web Key
JwkApideleteJsonWebKeyDELETE /admin/keys/{set}/{kid}Delete JSON Web Key
JwkApideleteJsonWebKeySetDELETE /admin/keys/{set}Delete JSON Web Key Set
JwkApigetJsonWebKeyGET /admin/keys/{set}/{kid}Get JSON Web Key
JwkApigetJsonWebKeySetGET /admin/keys/{set}Retrieve a JSON Web Key Set
JwkApisetJsonWebKeyPUT /admin/keys/{set}/{kid}Set JSON Web Key
JwkApisetJsonWebKeySetPUT /admin/keys/{set}Update a JSON Web Key Set
MetadataApigetVersionGET /versionReturn Running Software Version.
MetadataApiisAliveGET /health/aliveCheck HTTP Server Status
MetadataApiisReadyGET /health/readyCheck HTTP Server and Database Status
OAuth2ApiacceptOAuth2ConsentRequestPUT /admin/oauth2/auth/requests/consent/acceptAccept OAuth 2.0 Consent Request
OAuth2ApiacceptOAuth2LoginRequestPUT /admin/oauth2/auth/requests/login/acceptAccept OAuth 2.0 Login Request
OAuth2ApiacceptOAuth2LogoutRequestPUT /admin/oauth2/auth/requests/logout/acceptAccept OAuth 2.0 Session Logout Request
OAuth2ApicreateOAuth2ClientPOST /admin/clientsCreate OAuth 2.0 Client
OAuth2ApideleteOAuth2ClientDELETE /admin/clients/{id}Delete OAuth 2.0 Client
OAuth2ApideleteOAuth2TokenDELETE /admin/oauth2/tokensDelete OAuth 2.0 Access Tokens from specific OAuth 2.0 Client
OAuth2ApideleteTrustedOAuth2JwtGrantIssuerDELETE /admin/trust/grants/jwt-bearer/issuers/{id}Delete Trusted OAuth2 JWT Bearer Grant Type Issuer
OAuth2ApigetOAuth2ClientGET /admin/clients/{id}Get an OAuth 2.0 Client
OAuth2ApigetOAuth2ConsentRequestGET /admin/oauth2/auth/requests/consentGet OAuth 2.0 Consent Request
OAuth2ApigetOAuth2LoginRequestGET /admin/oauth2/auth/requests/loginGet OAuth 2.0 Login Request
OAuth2ApigetOAuth2LogoutRequestGET /admin/oauth2/auth/requests/logoutGet OAuth 2.0 Session Logout Request
OAuth2ApigetTrustedOAuth2JwtGrantIssuerGET /admin/trust/grants/jwt-bearer/issuers/{id}Get Trusted OAuth2 JWT Bearer Grant Type Issuer
OAuth2ApiintrospectOAuth2TokenPOST /admin/oauth2/introspectIntrospect OAuth2 Access and Refresh Tokens
OAuth2ApilistOAuth2ClientsGET /admin/clientsList OAuth 2.0 Clients
OAuth2ApilistOAuth2ConsentSessionsGET /admin/oauth2/auth/sessions/consentList OAuth 2.0 Consent Sessions of a Subject
OAuth2ApilistTrustedOAuth2JwtGrantIssuersGET /admin/trust/grants/jwt-bearer/issuersList Trusted OAuth2 JWT Bearer Grant Type Issuers
OAuth2ApioAuth2AuthorizeGET /oauth2/authOAuth 2.0 Authorize Endpoint
OAuth2Apioauth2TokenExchangePOST /oauth2/tokenThe OAuth 2.0 Token Endpoint
OAuth2ApipatchOAuth2ClientPATCH /admin/clients/{id}Patch OAuth 2.0 Client
OAuth2ApirejectOAuth2ConsentRequestPUT /admin/oauth2/auth/requests/consent/rejectReject OAuth 2.0 Consent Request
OAuth2ApirejectOAuth2LoginRequestPUT /admin/oauth2/auth/requests/login/rejectReject OAuth 2.0 Login Request
OAuth2ApirejectOAuth2LogoutRequestPUT /admin/oauth2/auth/requests/logout/rejectReject OAuth 2.0 Session Logout Request
OAuth2ApirevokeOAuth2ConsentSessionsDELETE /admin/oauth2/auth/sessions/consentRevoke OAuth 2.0 Consent Sessions of a Subject
OAuth2ApirevokeOAuth2LoginSessionsDELETE /admin/oauth2/auth/sessions/loginRevokes OAuth 2.0 Login Sessions by either a Subject or a SessionID
OAuth2ApirevokeOAuth2TokenPOST /oauth2/revokeRevoke OAuth 2.0 Access or Refresh Token
OAuth2ApisetOAuth2ClientPUT /admin/clients/{id}Set OAuth 2.0 Client
OAuth2ApisetOAuth2ClientLifespansPUT /admin/clients/{id}/lifespansSet OAuth2 Client Token Lifespans
OAuth2ApitrustOAuth2JwtGrantIssuerPOST /admin/trust/grants/jwt-bearer/issuersTrust OAuth2 JWT Bearer Grant Type Issuer
OidcApicreateOidcDynamicClientPOST /oauth2/registerRegister OAuth2 Client using OpenID Dynamic Client Registration
OidcApicreateVerifiableCredentialPOST /credentialsIssues a Verifiable Credential
OidcApideleteOidcDynamicClientDELETE /oauth2/register/{id}Delete OAuth 2.0 Client using the OpenID Dynamic Client Registration Management Protocol
OidcApidiscoverOidcConfigurationGET /.well-known/openid-configurationOpenID Connect Discovery
OidcApigetOidcDynamicClientGET /oauth2/register/{id}Get OAuth2 Client using OpenID Dynamic Client Registration
OidcApigetOidcUserInfoGET /userinfoOpenID Connect Userinfo
OidcApirevokeOidcSessionGET /oauth2/sessions/logoutOpenID Connect Front- and Back-channel Enabled Logout
OidcApisetOidcDynamicClientPUT /oauth2/register/{id}Set OAuth2 Client using OpenID Dynamic Client Registration
WellknownApidiscoverJsonWebKeysGET /.well-known/jwks.jsonDiscover Well-Known JSON Web Keys

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

basic

  • Type: HTTP basic authentication

bearer

  • Type: HTTP basic authentication

oauth2

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: https://hydra.demo.ory.sh/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

Author

hi@ory.sh