Documentation
¶
Index ¶
- type Handler
- func (h Handler) Callback(c echo.Context) error
- func (h Handler) Login(c echo.Context) error
- func (h Handler) Logout(c echo.Context) error
- func (h Handler) LogoutCallback(c echo.Context) error
- func (h Handler) Middleware(next echo.HandlerFunc) echo.HandlerFunc
- func (h Handler) Profile(c echo.Context) error
- type Params
- type View
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { SessionService service.SessionService UserService srv.UserService Env *env.Env View View }
func (Handler) Login ¶
swagger:route GET /auth/login auth
Start authentication process.
This endpoint will redirect unauthenticated user to SSO and will redirect authenticated user to root.
Responses: 302: 500: HTTPError
func (Handler) Logout ¶
swagger:route GET /auth/logout auth
Terminate current user session.
This endpoint will redirect user to SSO to logout and SSO will redirect user back to root.
Responses: 302: 500: HTTPError
func (Handler) LogoutCallback ¶
func (Handler) Middleware ¶
func (h Handler) Middleware(next echo.HandlerFunc) echo.HandlerFunc
type Params ¶
type Params struct { fx.In SessionService service.SessionService UserService srv.UserService Env *env.Env }
Click to show internal directories.
Click to hide internal directories.