thirdparty

package
v0.1.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddProvider

func AddProvider(ctx context.Context, client *volcengine.Client, workspaceID, branchID string, params AddProviderParams) (map[string]interface{}, error)

AddProvider creates a Third-Party Auth provider and returns the created provider object decoded from the Auth Admin API response. Data-layer helper shared by the CLI (RunVolcengineAdd) and the MCP server.

func RemoveProvider

func RemoveProvider(ctx context.Context, client *volcengine.Client, workspaceID, branchID, providerID string) error

RemoveProvider deletes a Third-Party Auth provider by ID. Data-layer helper shared by the CLI (RunVolcengineRemove) and the MCP server.

func RunVolcengineAdd

func RunVolcengineAdd(ctx context.Context, client *volcengine.Client, workspaceID, branchID string, params AddProviderParams) error

func RunVolcengineList

func RunVolcengineList(ctx context.Context, client *volcengine.Client, workspaceID, branchID string) error

func RunVolcengineRemove

func RunVolcengineRemove(ctx context.Context, client *volcengine.Client, workspaceID, branchID, providerID string) error

func RunVolcengineSync

func RunVolcengineSync(ctx context.Context, client *volcengine.Client, workspaceID, branchID string) error

func SyncProviders

func SyncProviders(ctx context.Context, client *volcengine.Client, workspaceID, branchID string) error

SyncProviders triggers an immediate JWKS public key sync for all Third-Party Auth providers. Data-layer helper shared by the CLI (RunVolcengineSync) and the MCP server.

Types

type AddProviderParams

type AddProviderParams struct {
	OIDCIssuerURL       string
	CustomJWKSKid       string
	CustomJWKSAlgorithm string
	CustomJWKSPublicKey string
}

type ThirdPartyProvider

type ThirdPartyProvider struct {
	ID            string `json:"id"`
	Type          string `json:"type"`
	OIDCIssuerURL string `json:"oidc_issuer_url,omitempty"`
	ResolvedAt    string `json:"resolved_at,omitempty"`
	CreatedAt     string `json:"created_at,omitempty"`
	UpdatedAt     string `json:"updated_at,omitempty"`
}

func ListThirdPartyProviders

func ListThirdPartyProviders(ctx context.Context, client *volcengine.Client, workspaceID, branchID string) ([]ThirdPartyProvider, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL