Versions in this module Expand all Collapse all v1 v1.8.1 May 8, 2019 Changes in this version + const AccessTokenErrorCodeInvalidClient + const AccessTokenErrorCodeInvalidGrant + const AccessTokenErrorCodeInvalidRequest + const AccessTokenErrorCodeInvalidScope + const AccessTokenErrorCodeUnauthorizedClient + const AccessTokenErrorCodeUnsupportedGrantType + const TplActivate + func AccessTokenOAuth(ctx *context.Context, form auth.AccessTokenForm) + func Action(ctx *context.Context) + func Activate(ctx *context.Context) + func ActivateEmail(ctx *context.Context) + func AuthorizeOAuth(ctx *context.Context, form auth.AuthorizationForm) + func AutoSignIn(ctx *context.Context) (bool, error) + func ConnectOpenID(ctx *context.Context) + func ConnectOpenIDPost(ctx *context.Context, form auth.ConnectOpenIDForm) + func Dashboard(ctx *context.Context) + func Email2User(ctx *context.Context) + func Followers(ctx *context.Context) + func Following(ctx *context.Context) + func ForgotPasswd(ctx *context.Context) + func ForgotPasswdPost(ctx *context.Context) + func GetNotificationCount(c *context.Context) + func GetUserByName(ctx *context.Context, name string) *models.User + func GetUserByParams(ctx *context.Context) *models.User + func GrantApplicationOAuth(ctx *context.Context, form auth.GrantApplicationForm) + func Issues(ctx *context.Context) + func LinkAccount(ctx *context.Context) + func LinkAccountPostRegister(ctx *context.Context, cpt *captcha.Captcha, form auth.RegisterForm) + func LinkAccountPostSignIn(ctx *context.Context, signInForm auth.SignInForm) + func MustChangePassword(ctx *context.Context) + func MustChangePasswordPost(ctx *context.Context, cpt *captcha.Captcha, form auth.MustChangePasswordForm) + func NotificationPurgePost(c *context.Context) + func NotificationStatusPost(c *context.Context) + func Notifications(c *context.Context) + func Profile(ctx *context.Context) + func RegisterOpenID(ctx *context.Context) + func RegisterOpenIDPost(ctx *context.Context, cpt *captcha.Captcha, form auth.SignUpOpenIDForm) + func ResetPasswd(ctx *context.Context) + func ResetPasswdPost(ctx *context.Context) + func ShowSSHKeys(ctx *context.Context, uid int64) + 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, form auth.SignInOpenIDForm) + func SignInPost(ctx *context.Context, form auth.SignInForm) + func SignOut(ctx *context.Context) + func SignUp(ctx *context.Context) + func SignUpPost(ctx *context.Context, cpt *captcha.Captcha, form auth.RegisterForm) + func TwoFactor(ctx *context.Context) + func TwoFactorPost(ctx *context.Context, form auth.TwoFactorAuthForm) + func TwoFactorScratch(ctx *context.Context) + func TwoFactorScratchPost(ctx *context.Context, form auth.TwoFactorScratchAuthForm) + func U2F(ctx *context.Context) + func U2FChallenge(ctx *context.Context) + func U2FSign(ctx *context.Context, signResp u2f.SignResponse) + type AccessTokenError struct + ErrorCode AccessTokenErrorCode + ErrorDescription string + func (err AccessTokenError) Error() string + type AccessTokenErrorCode string + type AccessTokenResponse struct + AccessToken string + ExpiresIn int64 + RefreshToken string + TokenType TokenType + type AuthorizeError struct + ErrorCode AuthorizeErrorCode + ErrorDescription string + State string + func (err AuthorizeError) Error() string + type AuthorizeErrorCode string + const ErrorCodeAccessDenied + const ErrorCodeInvalidRequest + const ErrorCodeInvalidScope + const ErrorCodeServerError + const ErrorCodeTemporaryUnavailable + const ErrorCodeUnauthorizedClient + const ErrorCodeUnsupportedResponseType + type TokenType string + const TokenTypeBearer + const TokenTypeMAC