-
Notifications
You must be signed in to change notification settings - Fork 0
/
doc.go
22 lines (22 loc) · 775 Bytes
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 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.ClusterURL("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)
package sdk