Documentation
¶
Index ¶
- Constants
- func AccessTokenOAuth(ctx *context.Context)
- func Activate(ctx *context.Context)
- func ActivateEmail(ctx *context.Context)
- func ActivatePost(ctx *context.Context)
- func AuthorizeOAuth(ctx *context.Context)
- func CheckAutoLogin(ctx *context.Context) bool
- func ConnectOpenID(ctx *context.Context)
- func ConnectOpenIDPost(ctx *context.Context)
- func ForgotPasswd(ctx *context.Context)
- func ForgotPasswdPost(ctx *context.Context)
- func GrantApplicationOAuth(ctx *context.Context)
- func HandleSignOut(ctx *context.Context)
- func InfoOAuth(ctx *context.Context)
- func IntrospectOAuth(ctx *context.Context)
- func LinkAccount(ctx *context.Context)
- func LinkAccountPostRegister(ctx *context.Context)
- func LinkAccountPostSignIn(ctx *context.Context)
- func MustChangePassword(ctx *context.Context)
- func MustChangePasswordPost(ctx *context.Context)
- func OIDCKeys(ctx *context.Context)
- func OIDCWellKnown(ctx *context.Context)
- func Oauth2SetLinkAccountData(ctx *context.Context, linkAccountData LinkAccountData) error
- func RedirectAfterLogin(ctx *context.Context)
- func RegisterOpenID(ctx *context.Context)
- func RegisterOpenIDPost(ctx *context.Context)
- func ResetPasswd(ctx *context.Context)
- func ResetPasswdPost(ctx *context.Context)
- func SignIn(ctx *context.Context)
- func SignInOAuth(ctx *context.Context)
- func SignInOAuthCallback(ctx *context.Context)
- func SignInOpenID(ctx *context.Context)
- func SignInOpenIDPost(ctx *context.Context)
- func SignInPost(ctx *context.Context)
- func SignOut(ctx *context.Context)
- func SignUp(ctx *context.Context)
- func SignUpPost(ctx *context.Context)
- func TwoFactor(ctx *context.Context)
- func TwoFactorPost(ctx *context.Context)
- func TwoFactorScratch(ctx *context.Context)
- func TwoFactorScratchPost(ctx *context.Context)
- func WebAuthn(ctx *context.Context)
- func WebAuthnLoginAssertion(ctx *context.Context)
- func WebAuthnLoginAssertionPost(ctx *context.Context)
- func WebAuthnPasskeyAssertion(ctx *context.Context)
- func WebAuthnPasskeyLogin(ctx *context.Context)
- type AuthorizeError
- type AuthorizeErrorCode
- type LinkAccountData
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func AccessTokenOAuth ¶
AccessTokenOAuth manages all access token requests by the client
func ActivateEmail ¶
ActivateEmail render the activate email page
func ActivatePost ¶
ActivatePost handles account activation with password check
func AuthorizeOAuth ¶
AuthorizeOAuth manages authorize requests
func ConnectOpenID ¶
ConnectOpenID shows a form to connect an OpenID URI to an existing account
func ConnectOpenIDPost ¶
ConnectOpenIDPost handles submission of a form to connect an OpenID URI to an existing account
func ForgotPasswd ¶
ForgotPasswd render the forget password page
func ForgotPasswdPost ¶
ForgotPasswdPost response for forget password request
func GrantApplicationOAuth ¶
GrantApplicationOAuth manages the post request submitted when a user grants access to an application
func HandleSignOut ¶
HandleSignOut resets the session and sets the cookies
func InfoOAuth ¶
InfoOAuth manages request for userinfo endpoint
func IntrospectOAuth ¶
IntrospectOAuth introspects an oauth token
func LinkAccount ¶
LinkAccount shows the page where the user can decide to login or create a new account
func LinkAccountPostRegister ¶
LinkAccountPostRegister handle the creation of a new account for an external account using signUp
func LinkAccountPostSignIn ¶
LinkAccountPostSignIn handle the coupling of external account with another account using signIn
func MustChangePassword ¶
MustChangePassword renders the page to change a user's password
func MustChangePasswordPost ¶
MustChangePasswordPost response for updating a user's password after their account was created by an admin
func OIDCWellKnown ¶
OIDCWellKnown generates JSON so OIDC clients know Gitea's capabilities
func Oauth2SetLinkAccountData ¶
func Oauth2SetLinkAccountData(ctx *context.Context, linkAccountData LinkAccountData) error
func RegisterOpenID ¶
RegisterOpenID shows a form to create a new user authenticated via an OpenID URI
func RegisterOpenIDPost ¶
RegisterOpenIDPost handles submission of a form to create a new user authenticated via an OpenID URI
func ResetPasswd ¶
ResetPasswd render the account recovery page
func ResetPasswdPost ¶
ResetPasswdPost response from account recovery request
func SignInOAuth ¶
SignInOAuth handles the OAuth2 login buttons
func SignInOAuthCallback ¶
SignInOAuthCallback handles the callback from the given provider