goamiddleware

package
v0.0.0-...-ef83997 Latest Latest
Warning

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

Go to latest
Published: May 2, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package goamiddleware contains a custom goa middleware that aims to extract, when possible, the token from the http requests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TokenContext

func TokenContext(validationKeys interface{}, validationFunc goa.Middleware, scheme *goa.JWTSecurity) goa.Middleware

TokenContext is a new goa middleware that aims to extract the token from the Authorization header when possible. If the Authorization header is missing in the request, no error is returned. However, if the Authorization header contains a token, it will be stored it in the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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