middleware

package
v0.0.0-...-57cc518 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2021 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

CORS is ready-to-use CORS Middleware

GZIP is Configured ready-to-go GZIP middleware

JWT is Fully Configured JWT Middleware to Support CWBI-Auth

Functions

func IsLoggedIn

func IsLoggedIn(next echo.HandlerFunc) echo.HandlerFunc

IsLoggedIn sets appropriate actor fields based on the time of the request and the user claims in the JWT

func MockIsLoggedIn

func MockIsLoggedIn(next echo.HandlerFunc) echo.HandlerFunc

MockIsLoggedIn sets appropriate actor fields based on the time of the request and mocked user information Necessary for running integration tests unauthenticated

Types

This section is empty.

Jump to

Keyboard shortcuts

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