Hey team, it’s a bit unclear, but is the ory/clien...
# talk-keto
s
Hey team, it’s a bit unclear, but is the ory/client-go meant to be used with self-hosted ory? I got it working with kratos, but how can I add keto? This doesn’t look right:
Copy code
// NewSDK creates the ory client
func NewSDK(cfg Config) *ory.APIClient {
	configuration := ory.NewConfiguration()
	configuration.Servers = []ory.ServerConfiguration{
		{URL: cfg.Kratos.PublicURL},
		{URL: cfg.Kratos.AdminURL},
		{URL: cfg.Keto.WriteURL},
		{URL: cfg.Keto.ReadURL},
	}

	return ory.NewAPIClient(configuration)
}
f
https://www.ory.sh/docs/keto/sdk/overview it's recommend to use the dedicated keto client
s
thanks! for some reason when I used the
go get
to get the keto client, it was downloading the v0.52 which wasn’t working. after manually specifying v0.10.1 it worked.
m
Thanks Dominik, that is correct! I have opened an issue here to make it more clear: https://github.com/ory/docs/issues/1223