web

package
v0.0.0-...-3e1c22f Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrSessionServiceNotPresent ...
	ErrSessionServiceNotPresent = errors.New("session service not present in the request context")
	// ErrClientNotPresent ...
	ErrClientNotPresent = errors.New("client not present in the request context")
)
View Source
var ErrIncorrectResponseType = errors.New("response type not one of token or code")

ErrIncorrectResponseType a form value for response_type was not set to token or code

Functions

func Authorize

func Authorize(ctx echo.Context) error

func AuthorizeForm

func AuthorizeForm(ctx echo.Context) error

func Login

func Login(ctx echo.Context) error

func LoginForm

func LoginForm(ctx echo.Context) error

func Logout

func Logout(ctx echo.Context) error

func NewClientMiddleware

func NewClientMiddleware(service session.Service) *clientMiddleware

newClientMiddleware creates a new clientMiddleware instance

func NewGuestMiddleware

func NewGuestMiddleware(service session.Service) *guestMiddleware

newGuestMiddleware creates a new guestMiddleware instance

func NewLoggedInMiddleware

func NewLoggedInMiddleware(service session.Service) *loggedInMiddleware

newLoggedInMiddleware creates a new loggedInMiddleware instance

func Register

func Register(ctx echo.Context) error

func RegisterForm

func RegisterForm(ctx echo.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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