auth

package
v0.0.0-...-4e1bd8b Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// IsLoggedIn is used as a JWT middleware.
	IsLoggedIn = middleware.JWTWithConfig(middleware.JWTConfig{
		SigningKey: []byte("secret"),
	})
)

Functions

func Accessible

func Accessible(c echo.Context) error

Accessible is an unauthenticated route.

func Login

func Login(c echo.Context) error

Login route.

func Restricted

func Restricted(c echo.Context) error

Restricted group is for authorized users.

func Routes

func Routes(e *echo.Echo) *echo.Group

Routes defines the URL routing for Authentication middleware.

Types

This section is empty.

Jump to

Keyboard shortcuts

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