goamiddleware

package
v0.0.0-...-2d73068 Latest Latest
Warning

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

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

Documentation

Overview

This package 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(app application.Application, tokenManager manager.TokenManager, 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