modulepackage
0.0.0-20240730143044-b7c6b3823ec4
Repository: https://github.com/cloudentity/acp-client-go.git
Documentation: pkg.go.dev
# README
Cloudentity ACP OpenAPI Go Client
This repository contains a generated OpenAPI client for Go
It's generated from OpenAPI 2.0 specification.
Sample usage
Client secret basic or client secret post authentication
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"},
})
Client secret basic or client secret post authentication with per-tenant vanity domain
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"},
})
Client secret basic or client secret post authentication with per-server vanity domain
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"},
})
TLS client authentication
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"},
})
# Packages
No description provided by the author
# Functions
Create a new ACP client instance based on config.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Client provides a client to the ACP API.
ACP client configuration.
CSRF contains state, nonce and/or PKCEverifier which are used to mitigate replay attacks and cross-site request forgery.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author