middleware

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware(deps *dependencies.Dependencies) gin.HandlerFunc

AuthMiddleware provides basic authentication capabilities to all routes underneath its usage, only allowing authenticated users access and set a custom local context `account` with the account model for the logged in user.

func AuthenticationRequired

func AuthenticationRequired() gin.HandlerFunc

AuthenticationRequired provides a middleware that checks if the user is logged in, returning a 401 error if not.

Types

This section is empty.

Jump to

Keyboard shortcuts

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