Documentation ¶
Index ¶
Constants ¶
View Source
const CSRFTokenHeader = "X-CSRF-Token"
CSRFTokenHeader is a marker header that indicates we are not a browser that got tricked into requesting basic auth Corresponds to the header expected by basic-auth challenging authenticators
Variables ¶
This section is empty.
Functions ¶
func RequestToken ¶
func RequestToken(clientCfg *kclient.Config, reader io.Reader, defaultUsername string, defaultPassword string) (string, error)
RequestToken uses the cmd arguments to locate an openshift oauth server and attempts to authenticate it returns the access token if it gets one. An error if it does not
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.