middleware

package
v0.0.0-...-614d85d Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateCustomer

func ValidateCustomer(next echo.HandlerFunc) echo.HandlerFunc

ValidateCustomer verifies if the request referring to the valid customer in the system

func ValidateUserInCustomer

func ValidateUserInCustomer(next echo.HandlerFunc) echo.HandlerFunc

ValidateUserInCustomer checks if the user referring by UserID or Groups attributes in request headers belongs to the customer in the request context. If affirmative, it adds userId and groups attribute to request context

Types

This section is empty.

Jump to

Keyboard shortcuts

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