authentication

package
v0.0.0-...-8717a1f Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2020 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationService

type AuthenticationService struct {
	mock.Mock
}

func (AuthenticationService) ForgotPassword

func (m AuthenticationService) ForgotPassword(email string) (verificationID string, err error)

func (AuthenticationService) Login

func (m AuthenticationService) Login(email, password string) (requireTFA bool, accessToken security.AccessToken, err error)

func (AuthenticationService) Register

func (m AuthenticationService) Register(user userland.User) error

func (AuthenticationService) RequestVerification

func (m AuthenticationService) RequestVerification(verificationType string, email string) (verificationID string, err error)

func (AuthenticationService) ResetPassword

func (m AuthenticationService) ResetPassword(forgotPassToken string, newPassword string) error

func (AuthenticationService) VerifyAccount

func (m AuthenticationService) VerifyAccount(verificationID string, email string, code string) error

func (AuthenticationService) VerifyTFA

func (m AuthenticationService) VerifyTFA(tfaToken string, userID int, code string) (accessToken security.AccessToken, err error)

func (AuthenticationService) VerifyTFABypass

func (m AuthenticationService) VerifyTFABypass(tfaToken string, userID int, code string) (accessToken security.AccessToken, err error)

type SimpleAuthenticationService

type SimpleAuthenticationService struct {
	CalledMethods map[string]bool
}

func (SimpleAuthenticationService) ForgotPassword

func (m SimpleAuthenticationService) ForgotPassword(email string) (verificationID string, err error)

func (SimpleAuthenticationService) Login

func (m SimpleAuthenticationService) Login(email, password string) (requireTFA bool, accessToken security.AccessToken, err error)

func (SimpleAuthenticationService) Register

func (SimpleAuthenticationService) RequestVerification

func (m SimpleAuthenticationService) RequestVerification(verificationType string, email string) (verificationID string, err error)

func (SimpleAuthenticationService) ResetPassword

func (m SimpleAuthenticationService) ResetPassword(forgotPassToken string, newPassword string) error

func (SimpleAuthenticationService) VerifyAccount

func (m SimpleAuthenticationService) VerifyAccount(verificationID string, email string, code string) error

func (SimpleAuthenticationService) VerifyTFA

func (m SimpleAuthenticationService) VerifyTFA(tfaToken string, userID int, code string) (accessToken security.AccessToken, err error)

func (SimpleAuthenticationService) VerifyTFABypass

func (m SimpleAuthenticationService) VerifyTFABypass(tfaToken string, userID int, code string) (accessToken security.AccessToken, err error)

Jump to

Keyboard shortcuts

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