Documentation ¶
Overview ¶
Package integration contains integration tests for OpenShift Origin.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIdentifyingHandler ¶
Types ¶
type BasicAuthChallenger ¶
type BasicAuthChallenger struct {
// contains filtered or unexported fields
}
func NewBasicAuthChallenger ¶
func NewBasicAuthChallenger(realm string, users []User, authenticatedHandler http.Handler) BasicAuthChallenger
NewBasicAuthChallenger provides a simple basic auth server that is compatible with our basic auth password validator
Example ¶
challenger := NewBasicAuthChallenger("realm", []User{{"username", "password", "Brave Butcher", "cowardly_butcher@example.org"}}, NewIdentifyingHandler()) http.Handle("/", challenger) log.Printf("Auth server listening on http://localhost:1234") log.Fatal(http.ListenAndServe(":1234", nil))
Output:
func (*BasicAuthChallenger) Challenge ¶
func (challenger *BasicAuthChallenger) Challenge(w http.ResponseWriter)
func (BasicAuthChallenger) ServeHTTP ¶
func (challenger BasicAuthChallenger) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*BasicAuthChallenger) Validate ¶
func (challenger *BasicAuthChallenger) Validate(username, password string) bool
Click to show internal directories.
Click to hide internal directories.