Go
In this document you can find code examples for a self-hosted Ory Kratos Go SDK.
info
Missing an example? Please create a feature request and it will be added here.
You can find more examples of SDK usage in the auto-generated documentation
kratos-client
.
The Ory Hydra Go SDK is generated using go-swagger
.
warning
Don't consume the /oauth2/auth
and /oauth2/token
endpoints using this SDK. Use
golang.org/x/oauth2. For more information visit the
Using OAuth2 guide.
Installation
To install the Go SDK, run:
go get github.com/ory/client-go
Making requests
The following code examples show how to make requests to the Ory Hydra API.