websocket

package
v1.11.0-alpha.0...-6908cc4 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2018 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProtocolAuthenticator

type ProtocolAuthenticator struct {
	// contains filtered or unexported fields
}

ProtocolAuthenticator allows a websocket connection to provide a bearer token as a subprotocol in the format "base64url.bearer.authorization.<base64url-without-padding(bearer-token)>"

func NewProtocolAuthenticator

func NewProtocolAuthenticator(auth authenticator.Token) *ProtocolAuthenticator

func (*ProtocolAuthenticator) AuthenticateRequest

func (a *ProtocolAuthenticator) AuthenticateRequest(req *http.Request) (user.Info, bool, error)

Jump to

Keyboard shortcuts

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