middlewares

package
v0.0.0-...-adb56df Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSRFByForm

func CSRFByForm() echo.MiddlewareFunc

func HandleGraphQLError

func HandleGraphQLError(ctx context.Context, e error) *gqlerror.Error

func HandlerError

func HandlerError(err error, ctx echo.Context)

Types

type AuthMiddleware

type AuthMiddleware interface {
	MustAuthClientSecret(next echo.HandlerFunc) echo.HandlerFunc
	MustVerifyAdminClient(next echo.HandlerFunc) echo.HandlerFunc
	AuthClientSecret() func(handler http.Handler) http.Handler
	AuthAccessToken() func(handler http.Handler) http.Handler
	VerifyClient() func(handler http.Handler) http.Handler
	VerifyFileDownloadPermission(next echo.HandlerFunc) echo.HandlerFunc
}

func NewAuthMiddleware

func NewAuthMiddleware(oauthUseCase usecases.OauthUseCase, downloadUseCase usecases.DownloadUseCase) AuthMiddleware

Jump to

Keyboard shortcuts

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