security

package
Version: v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIKeyAuth

func APIKeyAuth(name, in string, authenticate TokenAuthentication) httpkit.Authenticator

APIKeyAuth creates an authenticator that uses a token for authorization. This token can be obtained from either a header or a query string

func BasicAuth

func BasicAuth(authenticate UserPassAuthentication) httpkit.Authenticator

BasicAuth creates a basic auth authenticator with the provided authentication function

Types

type TokenAuthentication

type TokenAuthentication func(string) (interface{}, error)

TokenAuthentication authentication function

type UserPassAuthentication

type UserPassAuthentication func(string, string) (interface{}, error)

UserPassAuthentication authentication function

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL