auth

package
v0.0.0-...-e1bbea1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthRequired

func AuthRequired(userType string) gin.HandlerFunc

AuthRequired is a simple middleware to check the session

func Login

func Login(c *gin.Context)

login is a handler that parses a form and checks for specific data

func Logout

func Logout(c *gin.Context)

func Session

func Session(name string) gin.HandlerFunc

Types

type LoginRequest

type LoginRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type Sstore

type Sstore struct {
	*pgstore.PGStore
}

func (*Sstore) Options

func (s *Sstore) Options(options sessions.Options)

Directories

Path Synopsis
Package google provides you access to Google's OAuth2 infrastructure.
Package google provides you access to Google's OAuth2 infrastructure.

Jump to

Keyboard shortcuts

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