Versions in this module Expand all Collapse all v1 v1.0.0 Jul 24, 2018 Changes in this version + func BasicEnabled() bool + func GSSAPIEnabled() bool + func RequestToken(clientCfg *restclient.Config, reader io.Reader, defaultUsername string, ...) (string, error) + func SSPIEnabled() bool + type BasicChallengeHandler struct + Host string + Password string + Reader io.Reader + Username string + Writer io.Writer + func (c *BasicChallengeHandler) CanHandle(headers http.Header) bool + func (c *BasicChallengeHandler) CompleteChallenge(requestURL string, headers http.Header) error + func (c *BasicChallengeHandler) HandleChallenge(requestURL string, headers http.Header) (http.Header, bool, error) + func (c *BasicChallengeHandler) Release() error + type ChallengeHandler interface + CanHandle func(headers http.Header) bool + CompleteChallenge func(requestURL string, headers http.Header) error + HandleChallenge func(requestURL string, headers http.Header) (http.Header, bool, error) + Release func() error + func NewMultiHandler(handlers ...ChallengeHandler) ChallengeHandler + func NewNegotiateChallengeHandler(negotiator Negotiator) ChallengeHandler + type MultiHandler struct + func (h *MultiHandler) CanHandle(headers http.Header) bool + func (h *MultiHandler) CompleteChallenge(requestURL string, headers http.Header) error + func (h *MultiHandler) HandleChallenge(requestURL string, headers http.Header) (http.Header, bool, error) + func (h *MultiHandler) Release() error + type NegotiateChallengeHandler struct + func (c *NegotiateChallengeHandler) CanHandle(headers http.Header) bool + func (c *NegotiateChallengeHandler) CompleteChallenge(requestURL string, headers http.Header) error + func (c *NegotiateChallengeHandler) HandleChallenge(requestURL string, headers http.Header) (http.Header, bool, error) + func (c *NegotiateChallengeHandler) Release() error + type Negotiator interface + InitSecContext func(requestURL string, challengeToken []byte) (tokenToSend []byte, err error) + IsComplete func() bool + Load func() error + Release func() error + func NewGSSAPINegotiator(string) Negotiator + func NewSSPINegotiator(principalName, password, host string, reader io.Reader) Negotiator + func NewSSPINegotiator(string, string, string, io.Reader) Negotiator + type RequestTokenOptions struct + ClientConfig *restclient.Config + Handler ChallengeHandler + OsinConfig *osincli.ClientConfig + TokenFlow bool + func NewRequestTokenOptions(clientCfg *restclient.Config, reader io.Reader, defaultUsername string, ...) *RequestTokenOptions + func (o *RequestTokenOptions) RequestToken() (string, error) + func (o *RequestTokenOptions) SetDefaultOsinConfig() error