Documentation ¶
Overview ¶
Package SDK offers convenience functions for Go code around Hydra's HTTP APIs.
import "github.com/ory-am/hydra/sdk" import "github.com/ory-am/hydra/client" var hydra, err = sdk.Connect( sdk.ClientID("client-id"), sdk.ClientSecret("client-secret"), sdk.ClustURL("https://localhost:4444"), ) // You now have access to the various API endpoints of hydra, for example the oauth2 client endpoint: var newClient, err = hydra.Client.CreateClient(&client.Client{ ID: "deadbeef", Secret: "sup3rs3cret", RedirectURIs: []string{"http://yourapp/callback"}, // ... }) // Retrieve newly created client var gotClient, err = hydra.Client.GetClient(newClient.ID)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { // Client offers OAuth2 Client management capabilities. Client *client.HTTPManager // SSO offers Social Login management capabilities. SSO *connection.HTTPManager // JWK offers JSON Web Key management capabilities. JWK *jwk.HTTPManager // Policies offers Access Policy management capabilities. Policies *policy.HTTPManager // Warden offers Access Token and Access Request validation strategies. Warden *warden.HTTPWarden // contains filtered or unexported fields }
Client offers easy use of all HTTP clients.
Click to show internal directories.
Click to hide internal directories.