response

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthResponse

type AuthResponse struct {
	ID        ids.AuthID     `json:"id"`
	GatewayID ids.GatewayID  `json:"gateway_id"`
	Name      string         `json:"name"`
	Type      string         `json:"type"`
	Enabled   bool           `json:"enabled"`
	Config    ConfigResponse `json:"config"`
	APIKey    string         `json:"api_key,omitempty"` // #nosec G101
	CreatedAt time.Time      `json:"created_at"`
	UpdatedAt time.Time      `json:"updated_at"`
}

func FromAuth

func FromAuth(a *domain.Auth) AuthResponse

func FromCreatedAuth

func FromCreatedAuth(a *domain.Auth) AuthResponse

type ConfigResponse

type ConfigResponse struct {
	OAuth2 *OAuth2ConfigResponse `json:"oauth2,omitempty"`
	OIDC   *OIDCConfigResponse   `json:"oidc,omitempty"`
	MTLS   *MTLSConfigResponse   `json:"mtls,omitempty"`
}

type ListAuthResponse

type ListAuthResponse struct {
	Items []AuthResponse `json:"items"`
	Page  int            `json:"page"`
	Size  int            `json:"size"`
	Total int            `json:"total"`
}

type MTLSConfigResponse

type MTLSConfigResponse struct {
	CACert              string   `json:"ca_cert,omitempty"`
	AllowedCommonNames  []string `json:"allowed_common_names,omitempty"`
	AllowedDNSNames     []string `json:"allowed_dns_names,omitempty"`
	AllowedFingerprints []string `json:"allowed_fingerprints,omitempty"`
}

type OAuth2ConfigResponse

type OAuth2ConfigResponse struct {
	Issuer           string   `json:"issuer"`
	Audiences        []string `json:"audiences,omitempty"`
	JWKSURL          string   `json:"jwks_url,omitempty"`
	IntrospectionURL string   `json:"introspection_url,omitempty"`
	ClientID         string   `json:"client_id,omitempty"`
	ClientSecret     string   `json:"client_secret,omitempty"`
	RequiredScopes   []string `json:"required_scopes,omitempty"`
	Algorithms       []string `json:"allowed_algorithms,omitempty"`
	SessionMode      bool     `json:"session_mode,omitempty"`
	UserInfoURL      string   `json:"userinfo_url,omitempty"`
	SubjectClaim     string   `json:"subject_claim,omitempty"`
}

type OIDCConfigResponse

type OIDCConfigResponse struct {
	Issuer            string   `json:"issuer"`
	Audiences         []string `json:"audiences"`
	JWKSURL           string   `json:"jwks_url,omitempty"`
	PublicKeys        []string `json:"public_keys,omitempty"`
	RequiredScopes    []string `json:"required_scopes,omitempty"`
	AllowedAlgorithms []string `json:"allowed_algorithms,omitempty"`
	SubjectClaim      string   `json:"subject_claim,omitempty"`
}

Jump to

Keyboard shortcuts

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