header

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2017 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitHeaderConnector

func InitHeaderConnector(header string) auth.AuthConnector

InitHeaderConnector initializes Header connector configuration

Types

type HeaderAuthConnector

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

HeaderAuthConnector represents a connector that implements interface of auth connector

func (HeaderAuthConnector) Authenticate

func (h HeaderAuthConnector) Authenticate(next http.Handler) http.Handler

Authenticate retrieves auth header from request and returns its value

func (HeaderAuthConnector) RetrieveUserID

func (h HeaderAuthConnector) RetrieveUserID(r http.Request) string

RetrieveUserID retrieves user from header

Jump to

Keyboard shortcuts

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