auth

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

README

iris-auth-gorm

Authentification Middleware for IRIS using gorm as a backend

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(user models.User, ctx iris.Context)

Check verifies the provided user against the DB

func MiddleWare

func MiddleWare(ctx iris.Context)

MiddleWare exports the middleware function to check authentification

func RequireAuthRoute

func RequireAuthRoute(login string)

RequireAuthRoute gets the route to call if auth fail

func SetDB

func SetDB(DataStore *gorm.DB)

SetDB allows the using package to provide us with the DB information

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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