otp

command module
v0.0.0-...-b5fb6d8 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 4 Imported by: 0

README

otp

This project is a simple implement of 2 factor authentication using time-based one-time password.

Getting started

1. Set up Google Authenticator

Install Google Authneticator app. (iPhone / Android)

Scan QR code below. This QR code has example user's key for generating one-time password.

If it is difficult to scan QR code, please enter account and key directly.

account arbitrary name
key NBSWY3DP

NBSWY3DP is a Base32 encoded value of hello.

When you finished set up, 6 digits code will be generated every 30 seconds.

2. Run server
make run
3. Try to login

Access to localhost:8080 and try to login.

You will be required to enter one-time password after id/password login. Then, enter one-time password shown in Google Authenticator.

id hogehoge
password hogehoge

NOT implement

  • Resynchronization
  • Preventing CSRF attacks

Articles

References

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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