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 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"`
}
Click to show internal directories.
Click to hide internal directories.