Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StrIsEmpty ¶ added in v0.6.0
Types ¶
type AAPOAuth ¶ added in v0.6.0
type AAPOAuth struct {
Metadata api.ObjectMeta
Spec api.AapProviderSpec
CAFile string
InsecureSkipVerify bool
ApiServerURL string
CallbackPort int
Username string
Password string
Web bool
}
func NewAAPOAuth2Config ¶ added in v0.6.0
func (*AAPOAuth) SetInsecureSkipVerify ¶ added in v1.0.0
func (*AAPOAuth) Validate ¶ added in v0.6.0
func (o *AAPOAuth) Validate(args ValidateArgs) error
type AAPRoundTripper ¶ added in v0.6.0
type AAPRoundTripper struct {
Transport http.RoundTripper
}
type AuthInfo ¶ added in v0.6.0
type AuthInfo struct {
AccessToken string
RefreshToken string
IdToken string
TokenToUse TokenToUseType
ExpiresIn *int64
}
type AuthProvider ¶
type GetClientFunc ¶ added in v0.6.0
type NilAuth ¶
type NilAuth struct{}
NilAuth is a provider for when authentication is disabled
func (*NilAuth) Renew ¶
Renew returns empty AuthInfo and no error — renewal not applicable when auth is disabled
func (*NilAuth) SetInsecureSkipVerify ¶
SetInsecureSkipVerify is a no-op when authentication is disabled
func (*NilAuth) Validate ¶
func (n *NilAuth) Validate(args ValidateArgs) error
Validate is a no-op when authentication is disabled
type OAuth2 ¶
type OAuth2 struct {
Metadata api.ObjectMeta
Spec api.OAuth2ProviderSpec
CAFile string
InsecureSkipVerify bool
ApiServerURL string
CallbackPort int
Username string
Password string
Web bool
}
func NewOAuth2Config ¶ added in v1.0.0
func (*OAuth2) SetInsecureSkipVerify ¶ added in v1.0.0
func (*OAuth2) Validate ¶ added in v1.0.0
func (o *OAuth2) Validate(args ValidateArgs) error
type OIDC ¶
type OIDC struct {
Metadata api.ObjectMeta
Spec api.OIDCProviderSpec
CAFile string
InsecureSkipVerify bool
ApiServerURL string
CallbackPort int
Username string
Password string
Web bool
}
func NewOIDCConfig ¶
func (*OIDC) SetInsecureSkipVerify ¶ added in v1.0.0
func (*OIDC) Validate ¶ added in v0.6.0
func (o *OIDC) Validate(args ValidateArgs) error
type OIDCDirectResponse ¶
type OIDCDiscoveryResponse ¶ added in v1.0.0
type OIDCDiscoveryResponse struct {
// Required fields
Issuer string `json:"issuer"`
AuthorizationEndpoint string `json:"authorization_endpoint"`
TokenEndpoint string `json:"token_endpoint"`
JwksUri string `json:"jwks_uri"`
SubjectTypesSupported []string `json:"subject_types_supported"`
ResponseTypesSupported []string `json:"response_types_supported"`
IdTokenSigningAlgValuesSupported []string `json:"id_token_signing_alg_values_supported"`
// Optional fields
UserinfoEndpoint string `json:"userinfo_endpoint,omitempty"`
GrantTypesSupported []string `json:"grant_types_supported,omitempty"`
ScopesSupported []string `json:"scopes_supported,omitempty"`
ClaimsSupported []string `json:"claims_supported,omitempty"`
TokenEndpointAuthMethodsSupported []string `json:"token_endpoint_auth_methods_supported,omitempty"`
CodeChallengeMethodsSupported []string `json:"code_challenge_methods_supported,omitempty"`
}
OIDCDiscoveryResponse represents the OpenID Connect Discovery metadata as defined in the Flight Control PAM issuer OpenAPI spec
type OpenShift ¶ added in v1.0.0
type OpenShift struct {
Metadata api.ObjectMeta
Spec api.OpenShiftProviderSpec
CAFile string
InsecureSkipVerify bool
ApiServerURL string
CallbackPort int
Username string
Password string
Web bool
}
func NewOpenShiftConfig ¶ added in v1.0.0
func (*OpenShift) SetInsecureSkipVerify ¶ added in v1.0.0
func (*OpenShift) Validate ¶ added in v1.0.0
func (o *OpenShift) Validate(args ValidateArgs) error
type TokenAuth ¶ added in v1.0.0
type TokenAuth struct {
Token string
}
TokenAuth is a provider for direct token-based authentication
func NewTokenAuth ¶ added in v1.0.0
NewTokenAuth creates a new token-based auth provider
func (*TokenAuth) SetInsecureSkipVerify ¶ added in v1.0.0
func (*TokenAuth) Validate ¶ added in v1.0.0
func (t *TokenAuth) Validate(args ValidateArgs) error
Validate performs no validation - token is already provided
type TokenToUseType ¶ added in v1.0.0
type TokenToUseType string
const ( TokenToUseAccessToken TokenToUseType = "access" TokenToUseIdToken TokenToUseType = "id" )
type ValidateArgs ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.