ory_hydra_client 0.0.0 copy "ory_hydra_client: ^0.0.0" to clipboard
ory_hydra_client: ^0.0.0 copied to clipboard

outdated

OpenAPI API client

ory_hydra_client #

Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here.

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

  • API version: v0.0.0
  • Build package: org.openapitools.codegen.languages.DartClientCodegen

Requirements #

Dart 2.0 or later

Installation & Usage #

Github #

If this Dart package is published to Github, add the following dependency to your pubspec.yaml

dependencies:
  ory_hydra_client:
    git: https://github.com/ory/sdk.git

Local #

To use the package in your local drive, add the following dependency to your pubspec.yaml

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

Tests #

TODO

Getting Started #

Please follow the installation procedure and then run the following:

import 'package:ory_hydra_client/api.dart';


final api_instance = AdminApi();
final consentChallenge = consentChallenge_example; // String | 
final body = AcceptConsentRequest(); // AcceptConsentRequest | 

try {
    final result = api_instance.acceptConsentRequest(consentChallenge, body);
    print(result);
} catch (e) {
    print('Exception when calling AdminApi->acceptConsentRequest: $e\n');
}

Documentation for API Endpoints #

All URIs are relative to http://localhost

Class Method HTTP request Description
AdminApi acceptConsentRequest PUT /oauth2/auth/requests/consent/accept Accept an consent request
AdminApi acceptLoginRequest PUT /oauth2/auth/requests/login/accept Accept an login request
AdminApi acceptLogoutRequest PUT /oauth2/auth/requests/logout/accept Accept a logout request
AdminApi createJsonWebKeySet POST /keys/{set} Generate a new JSON Web Key
AdminApi createOAuth2Client POST /clients Create an OAuth 2.0 client
AdminApi deleteJsonWebKey DELETE /keys/{set}/{kid} Delete a JSON Web Key
AdminApi deleteJsonWebKeySet DELETE /keys/{set} Delete a JSON Web Key Set
AdminApi deleteOAuth2Client DELETE /clients/{id} Deletes an OAuth 2.0 Client
AdminApi flushInactiveOAuth2Tokens POST /oauth2/flush Flush Expired OAuth2 Access Tokens
AdminApi getConsentRequest GET /oauth2/auth/requests/consent Get consent request information
AdminApi getJsonWebKey GET /keys/{set}/{kid} Fetch a JSON Web Key
AdminApi getJsonWebKeySet GET /keys/{set} Retrieve a JSON Web Key Set
AdminApi getLoginRequest GET /oauth2/auth/requests/login Get an login request
AdminApi getLogoutRequest GET /oauth2/auth/requests/logout Get a logout request
AdminApi getOAuth2Client GET /clients/{id} Get an OAuth 2.0 Client.
AdminApi getVersion GET /version Get service version
AdminApi introspectOAuth2Token POST /oauth2/introspect Introspect OAuth2 tokens
AdminApi isInstanceAlive GET /health/alive Check alive status
AdminApi listOAuth2Clients GET /clients List OAuth 2.0 Clients
AdminApi listSubjectConsentSessions GET /oauth2/auth/sessions/consent Lists all consent sessions of a subject
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:
AdminApi rejectConsentRequest PUT /oauth2/auth/requests/consent/reject Reject an consent request
AdminApi rejectLoginRequest PUT /oauth2/auth/requests/login/reject Reject a login request
AdminApi rejectLogoutRequest PUT /oauth2/auth/requests/logout/reject Reject a logout request
AdminApi revokeAuthenticationSession DELETE /oauth2/auth/sessions/login Invalidates all login sessions of a certain user Invalidates a subject's authentication session
AdminApi revokeConsentSessions DELETE /oauth2/auth/sessions/consent Revokes consent sessions of a subject for a specific OAuth 2.0 Client
AdminApi updateJsonWebKey PUT /keys/{set}/{kid} Update a JSON Web Key
AdminApi updateJsonWebKeySet PUT /keys/{set} Update a JSON Web Key Set
AdminApi updateOAuth2Client PUT /clients/{id} Update an OAuth 2.0 Client
PublicApi disconnectUser GET /oauth2/sessions/logout OpenID Connect Front-Backchannel enabled Logout
PublicApi discoverOpenIDConfiguration GET /.well-known/openid-configuration OpenID Connect Discovery
PublicApi isInstanceReady GET /health/ready Check readiness status
PublicApi oauth2Token POST /oauth2/token The OAuth 2.0 token endpoint
PublicApi oauthAuth GET /oauth2/auth The OAuth 2.0 authorize endpoint
PublicApi revokeOAuth2Token POST /oauth2/revoke Revoke OAuth2 tokens
PublicApi userinfo GET /userinfo OpenID Connect Userinfo
PublicApi wellKnown GET /.well-known/jwks.json JSON Web Keys Discovery

Documentation For Models #

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)
  • offline_access: A scope required when requesting refresh tokens
  • openid: Request an OpenID Connect ID Token

Author #

3
likes
15
pub points
34%
popularity

Publisher

verified publisherory.sh

OpenAPI API client

Homepage

License

Apache-2.0 (LICENSE)

Dependencies

http, intl, meta

More

Packages that depend on ory_hydra_client