passwordchallenger

package
v3.9.0-alpha.1+incompa... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const CSRFTokenHeader = "X-CSRF-Token"

CSRFTokenHeader must be passed when requesting a WWW-Authenticate Basic challenge to prevent CSRF attacks on browsers. The presence of this header indicates that a user agent intended to make a basic auth request (as opposed to a browser being tricked into requesting /oauth/authorize?response_type=token&client_id=openshift-challenging-client). Because multiple clients (oc, Java client, etc) are required to set this header, it probably should not be changed.

Variables

This section is empty.

Functions

func NewBasicAuthChallenger

func NewBasicAuthChallenger(realm string) oauthhandlers.AuthenticationChallenger

NewBasicAuthChallenger returns a AuthenticationChallenger that responds with a basic auth challenge for the supplied realm

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL