middleware

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UserContainsAllRoles

func UserContainsAllRoles(roles *[]string) echo.MiddlewareFunc

func UserContainsAnyRole

func UserContainsAnyRole(roles *[]string) echo.MiddlewareFunc

Types

type AuthenticationMiddleware

type AuthenticationMiddleware struct {
	// contains filtered or unexported fields
}

func NewAuthenticationMiddleware

func NewAuthenticationMiddleware(firebase *firebase.App) *AuthenticationMiddleware

func (*AuthenticationMiddleware) ValidateJWT

func (m *AuthenticationMiddleware) ValidateJWT(ctx context.Context, IDToken string) error

Jump to

Keyboard shortcuts

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