authentication_middleware

package
v0.0.0-...-0eeeb36 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthMiddleware

type AuthMiddleware struct {
	ServicesGroup *service.ServicesGroup
}

func DefaultAuthMiddleware

func DefaultAuthMiddleware(sg *service.ServicesGroup) *AuthMiddleware

func (*AuthMiddleware) AddUserToContextIfValidToken

func (am *AuthMiddleware) AddUserToContextIfValidToken() gin.HandlerFunc

middleware

func (*AuthMiddleware) ApplyAuthToRoutes

func (am *AuthMiddleware) ApplyAuthToRoutes(routes *routes.Routes)

func (*AuthMiddleware) RequireAuthenticatedDevice

func (am *AuthMiddleware) RequireAuthenticatedDevice() gin.HandlerFunc

func (*AuthMiddleware) RequireAuthenticatedUser

func (am *AuthMiddleware) RequireAuthenticatedUser() gin.HandlerFunc

Jump to

Keyboard shortcuts

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