Documentation ¶
Index ¶
- Variables
- func Authorize(ctx echo.Context) error
- func AuthorizeForm(ctx echo.Context) error
- func Login(ctx echo.Context) error
- func LoginForm(ctx echo.Context) error
- func Logout(ctx echo.Context) error
- func NewClientMiddleware(service session.Service) *clientMiddleware
- func NewGuestMiddleware(service session.Service) *guestMiddleware
- func NewLoggedInMiddleware(service session.Service) *loggedInMiddleware
- func Register(ctx echo.Context) error
- func RegisterForm(ctx echo.Context) error
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 AuthorizeForm ¶
func AuthorizeForm(ctx echo.Context) error
func NewClientMiddleware ¶
newClientMiddleware creates a new clientMiddleware instance
func NewGuestMiddleware ¶
newGuestMiddleware creates a new guestMiddleware instance
func NewLoggedInMiddleware ¶
newLoggedInMiddleware creates a new loggedInMiddleware instance
func RegisterForm ¶
func RegisterForm(ctx echo.Context) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.