Skip to content
/ 2fa Public

Simple 2FA API service built on node-red

License

Notifications You must be signed in to change notification settings

oleksm/2fa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/