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) 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) 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