auth

package
v0.16.4-rc4 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Userkey = "user"

Variables

This section is empty.

Functions

func AuthRequired

func AuthRequired(c *gin.Context)

AuthRequired is a simple middleware to check the session

func CookieLogin added in v0.11.0

func CookieLogin(cookiePath string) gin.HandlerFunc

Cookie Login creates a user session

func CreateSession added in v0.8.0

func CreateSession(r *gin.Engine, apiPwd string) error

func Login

func Login(apiPwd string) gin.HandlerFunc

Login creates a user session, logging them in given the right username and password

func Logout

func Logout(c *gin.Context)

func RefreshCookieFile added in v0.11.0

func RefreshCookieFile(cookiePath string) error

func TorqRequired added in v0.14.0

func TorqRequired(c *gin.Context)

TorqRequired checks the status of the torq service

Types

This section is empty.

Jump to

Keyboard shortcuts

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