auth

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 4 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 CreateSession added in v0.8.0

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

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)

Types

This section is empty.

Jump to

Keyboard shortcuts

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