Documentation ¶
Overview ¶
Package clcedard provides components for the cedard authorization service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements a client for the cedard authorization service.
type Config ¶
type Config struct { // BaseURL configures the base url of the cedard service. BaseURL string `env:"BASE_URL" envDefault:"https://authz.crewlinker.com"` // JWTSigningSecret configures the secret for signing JWTs. JWTSigningSecret string `env:"JWT_SIGNING_SECRET" envDefault:"some-secret-for-testing"` // BackoffMaxElapsedTime configures the max elapsed time for the retry mechanism. BackoffMaxElapsedTime time.Duration `env:"BACKOFF_MAX_ELAPSED_TIME" envDefault:"3s"` }
Config configures the package.
type Input ¶
type Input struct { Principal string `json:"principal"` Action string `json:"action"` Resource string `json:"resource"` Policies string `json:"policies"` Context map[string]any `json:"context"` Schema map[string]any `json:"schema"` Entities []any `json:"entities"` }
Input for authorzation.
Click to show internal directories.
Click to hide internal directories.