hunter32292 / 2fa-example

https://jrstupkadev.medium.com/golang-2-factor-authentication-ce39da4420dd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2FA Example Service

Steps

  1. Using a browser go to http://localhost:8080/QrCode

  2. Using a OTP authentication app, scan the produced QrCode

  3. Using the below command and your access code from the authenticator app, run the below curl command

curl -v -u John:IamNotACat localhost:8080/login --data '{"OTP":"ACCESS_CODE"}'

About

https://jrstupkadev.medium.com/golang-2-factor-authentication-ce39da4420dd

License:MIT License