Documentation ¶
Index ¶
- Constants
- func NewDefaultTransport(skipVerify bool) *http.Transport
- func SuccessOrRedirectOrUnauthorizedResponseValidator(req *http.Request, resp *http.Response) error
- func SuccessOrRedirectResponseValidator(req *http.Request, resp *http.Response) error
- type HTTPClient
- type HTTPClientOptions
- type ValidateBase
Constants ¶
View Source
const ( DefaultAttemptsCount = 1 DefaultRetryDelay = time.Duration(1) * time.Second )
Variables ¶
This section is empty.
Functions ¶
func NewDefaultTransport ¶
NewDefaultTransport configure a transport with the TLS skip verify option
func SuccessOrRedirectOrUnauthorizedResponseValidator ¶ added in v2.32.0
SuccessOrRedirectOrUnauthorizedResponseValidator also allows 401
Types ¶
type HTTPClient ¶
type HTTPClient struct { http.Client CheckResponseStatus func(*http.Request, *http.Response) error Options *HTTPClientOptions }
HTTPClient saml2aws http client which extends the existing client
func NewHTTPClient ¶
func NewHTTPClient(tr http.RoundTripper, opts *HTTPClientOptions) (*HTTPClient, error)
NewHTTPClient configure the default http client used by the providers
func (*HTTPClient) DisableFollowRedirect ¶
func (hc *HTTPClient) DisableFollowRedirect()
DisableFollowRedirect disable redirects
func (*HTTPClient) EnableFollowRedirect ¶
func (hc *HTTPClient) EnableFollowRedirect()
EnableFollowRedirect enable redirects
type HTTPClientOptions ¶
type HTTPClientOptions struct { IsWithRetries bool //http retry feature switch AttemptsCount uint RetryDelay time.Duration }
func BuildHttpClientOpts ¶
func BuildHttpClientOpts(account *cfg.IDPAccount) *HTTPClientOptions
type ValidateBase ¶ added in v2.28.0
type ValidateBase struct { }
func (*ValidateBase) Validate ¶ added in v2.28.0
func (ac *ValidateBase) Validate(ld *creds.LoginDetails) error
Click to show internal directories.
Click to hide internal directories.