To install the Go SDK, run:
We use code generation to generate our SDKs. The Go SDK is generated using
go-swagger. The SDK is easily set up:
Be aware that endpoints /oauth2/auth and /oauth2/token MUST NOT be consumed using this SDK. Use golang.org/x/oauth2 instead.
Making requests is straight forward:
Some endpoints require e.g. Basic Authorization:
For more information on Authorization, check the go-swagger documentation.
You may want to protect ORY Hydra using e.g. OAuth2 Access Tokens. In that case, you can enhance the SDK by using the OAuth2 Client: