security

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2018 License: BSD-3-Clause Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JWTPublicKey *ecdsa.PublicKey

JWTPublicKey has the public key of the allowed JWT issuer

Functions

This section is empty.

Types

type OAuth2Middleware

type OAuth2Middleware struct {
	Scopes []string
}

OAuth2Middleware defines the common oauth2 functionality

func (*OAuth2Middleware) GetAccessToken

func (om *OAuth2Middleware) GetAccessToken(r *http.Request) string

GetAccessToken returns the access token from the authorization header or from the query parameters. If the authorization header starts with "bearer", "" is returned

Jump to

Keyboard shortcuts

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