Documentation ¶
Index ¶
- func AuthByPassword(ctx context.Context, req input.AuthByPasswordRequest, env *infra.Environment) output.Response
- func AuthByTOTP(ctx context.Context, req input.AuthByTOTPRequest, env *infra.Environment) output.Response
- func CreateUser(ctx context.Context, req input.CreateUserRequest, env *infra.Environment) output.Response
- func ExistsUser(ctx context.Context, req input.ExistsUserRequest, env *infra.Environment) output.Response
- func GetPublicKey(ctx context.Context, env *infra.Environment) output.Response
- func TOTPQRCode(ctx context.Context, req input.TOTPQRCodeRequest, env *infra.Environment) output.Response
- func UpdateEmail(ctx context.Context, req input.UpdateEmailRequest, env *infra.Environment) output.Response
- func VerifyEmail(ctx context.Context, req input.VerifyEmailRequest, env *infra.Environment) output.Response
- func VerifyTOTP(ctx context.Context, req input.VerifyTOTPRequest, env *infra.Environment) output.Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthByPassword ¶
func AuthByPassword(ctx context.Context, req input.AuthByPasswordRequest, env *infra.Environment) output.Response
AuthByPassword authenticates using password and session ID. Returns JWT Token.
func AuthByTOTP ¶
func AuthByTOTP(ctx context.Context, req input.AuthByTOTPRequest, env *infra.Environment) output.Response
AuthByTOTP authenticates using user ID and TOTP token. And returns SessionID.
func CreateUser ¶
func CreateUser(ctx context.Context, req input.CreateUserRequest, env *infra.Environment) output.Response
CreateUser creates a new user.
func ExistsUser ¶
func ExistsUser(ctx context.Context, req input.ExistsUserRequest, env *infra.Environment) output.Response
ExistsUser returns given user id has been used or not.
func GetPublicKey ¶
GetPublicKey returns ECDSA public key.
func TOTPQRCode ¶
func TOTPQRCode(ctx context.Context, req input.TOTPQRCodeRequest, env *infra.Environment) output.Response
TOTPQRCode returns a QR code including TOTP URI associated to given user.
func UpdateEmail ¶
func UpdateEmail(ctx context.Context, req input.UpdateEmailRequest, env *infra.Environment) output.Response
UpdateEmail updates email for the user.
func VerifyEmail ¶
func VerifyEmail(ctx context.Context, req input.VerifyEmailRequest, env *infra.Environment) output.Response
VerifyEmail verifies the email is valid.
func VerifyTOTP ¶
func VerifyTOTP(ctx context.Context, req input.VerifyTOTPRequest, env *infra.Environment) output.Response
VerifyTOTP verifies the TOTP configuration is successfully done.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.