This repository contains a generated OpenAPI client for Go
It's generated from OpenAPI 2.0 specification.
import "github.com/cloudentity/acp-client-go"
var client = acpclient.New(acpclient.Config{
ClientID: "your-clients-id",
ClientSecret: "your-clients-secret",
AuthMethod: acpclient.ClientSecretBasicAuthnMethod,
IssuerURL: "https://localhost:8443/default/default",
Scopes: []string{"introspect_tokens"},
})
import "github.com/cloudentity/acp-client-go"
var client = acpclient.New(acpclient.Config{
ClientID: "your-clients-id",
ClientSecret: "your-clients-secret",
AuthMethod: acpclient.ClientSecretBasicAuthnMethod,
IssuerURL: "https://acp.local:8443/default",
VanityDomainType: "tenant",
TenantID: "default",
Scopes: []string{"introspect_tokens"},
})
import "github.com/cloudentity/acp-client-go"
var client = acpclient.New(acpclient.Config{
ClientID: "your-clients-id",
ClientSecret: "your-clients-secret",
AuthMethod: acpclient.ClientSecretBasicAuthnMethod,
IssuerURL: "https://default.acp.local:8443",
VanityDomainType: "server",
TenantID: "default",
ServerID: "default",
Scopes: []string{"introspect_tokens"},
})
import "github.com/cloudentity/acp-client-go"
var client = acpclient.New(acpclient.Config{
ClientID: "your-clients-id",
AuthMethod: acpclient.TLSClientAuthnMethod,
IssuerURL: "https://localhost:8443/default/default",
CertFile: "./cert.pem",
KeyFile: "./key.pem",
RootCA: "./ca.pem",
Scopes: []string{"accounts"},
})