controllers

package
v0.0.0-...-b7d4bf0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 22 Imported by: 29

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthProxyController

type AuthProxyController struct {
	api.BaseController
}

AuthProxyController handles requests with token that can be reviewed by authproxy.

func (*AuthProxyController) HandleRedirect

func (apc *AuthProxyController) HandleRedirect()

HandleRedirect reviews the token and login the user based on the review status.

func (*AuthProxyController) Prepare

func (apc *AuthProxyController) Prepare()

Prepare checks the auth mode and fail early

type CommonController

type CommonController struct {
	api.BaseController
	i18n.Locale
}

CommonController handles request from UI that doesn't expect a page, such as /SwitchLanguage /logout ...

func (*CommonController) LogOut

func (cc *CommonController) LogOut()

LogOut Habor UI

func (*CommonController) Login

func (cc *CommonController) Login()

Login handles login request from UI.

func (*CommonController) Prepare

func (cc *CommonController) Prepare()

Prepare overwrites the Prepare func in api.BaseController to ignore unnecessary steps

func (*CommonController) Render

func (cc *CommonController) Render() error

Render returns nil.

func (*CommonController) UserExists

func (cc *CommonController) UserExists()

UserExists checks if user exists when user input value in sign in form.

type ErrorController

type ErrorController struct {
	web.Controller
}

ErrorController handles beego error pages

func (*ErrorController) Error404

func (ec *ErrorController) Error404()

Error404 renders the 404 page

type OIDCController

type OIDCController struct {
	api.BaseController
}

OIDCController handles requests for OIDC login, callback and user onboard

func (*OIDCController) Callback

func (oc *OIDCController) Callback()

Callback handles redirection from OIDC provider. It will exchange the token and kick off onboard if needed.

func (*OIDCController) Onboard

func (oc *OIDCController) Onboard()

Onboard handles the request to onboard a user authenticated via OIDC provider

func (*OIDCController) Prepare

func (oc *OIDCController) Prepare()

Prepare include public code path for call request handler of OIDCController

func (*OIDCController) RedirectLogin

func (oc *OIDCController) RedirectLogin()

RedirectLogin redirect user's browser to OIDC provider's login page

Jump to

Keyboard shortcuts

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