usecase

package
v0.0.0-...-fd8d5be Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthByPassword

AuthByPassword authenticates using password and session ID. Returns JWT Token.

func AuthByTOTP

AuthByTOTP authenticates using user ID and TOTP token. And returns SessionID.

func CreateUser

CreateUser creates a new user.

func ExistsUser

ExistsUser returns given user id has been used or not.

func GetPublicKey

func GetPublicKey(ctx context.Context, env *infra.Environment) output.Response

GetPublicKey returns ECDSA public key.

func TOTPQRCode

TOTPQRCode returns a QR code including TOTP URI associated to given user.

func UpdateEmail

UpdateEmail updates email for the user.

func VerifyEmail

VerifyEmail verifies the email is valid.

func VerifyTOTP

VerifyTOTP verifies the TOTP configuration is successfully done.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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