auth

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAuthenticated

func IsAuthenticated(c echo.Context) bool

IsAuthenticated checks if the user is authenticated by checking the session cookie

func IsPublic

func IsPublic(path string) bool

IsPublic checks if the path is publically accessible

func Secret

func Secret(msg, key string) string

Secret returns a hex encoded HMAC-SHA256 hash of the message using the key

Types

This section is empty.

Jump to

Keyboard shortcuts

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