authenticate

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2019 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(next http.Handler) http.Handler

Authenticate caller's token with vault

Types

type AuthCtxKey

type AuthCtxKey string

AuthCtxKey context key for authentication state & policy map

type AuthStruct

type AuthStruct struct {
	Authenticated bool
	PolicyMap     map[string]bool
}

AuthStruct holds authenticated state and policy map from vault for the token placed in context

Jump to

Keyboard shortcuts

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