Sign inSign up

aleksminaiev/2fa

By aleksminaiev

•Updated almost 9 years ago

Simple 2FA API service built on node-red

Image
0

1.0K

aleksminaiev/2fa repository overview

⁠2fa

Simple 2FA API service built on node-red

Screenshot

Assumes that secret is a base32 encoded string. Compatible with most 2FA providers as of today. Uses similar algorithm to what is in Google Authenticator or Authy apps.

⁠API

  • GET /auth - fetches stored auths
  • POST /auth - creates auth. Accepts payload params:
    • secret - Your Authentication Key
    • key - Alias name for the Auth
    • desc - Some Description Text
  • GET /auth/:key - retrieves auth token by alias name

⁠Docker Info

docker run -ti -p 1880:1880 aleksminaiev/2fa

Navigate: http://127.0.0.1:1880/⁠ Swagger spec: http://127.0.0.1:1880/http-api/swagger.json⁠

Docker hub: https://hub.docker.com/r/aleksminaiev/2fa/⁠

Tag summary

Content type

Image

Digest

Size

297.7 MB

Last updated

almost 9 years ago

docker pull aleksminaiev/2fa