WebSocketSample / otp /
@HIROSE Yuuji HIROSE Yuuji authored on 25 Oct 2022
..
.htaccess add otp.css userdb.rb web.rb 1 year ago
README.md Add title 1 year ago
otp-cgi.html add otp-cgi* 1 year ago
otp-cgi.js add otp-cgi* 1 year ago
otp-cgi.rb add otp-cgi* 1 year ago
otp.css add otp.css userdb.rb web.rb 1 year ago
otp.html add otp-cgi* 1 year ago
otp.js add otp-cgi* 1 year ago
otp.rb add otp-cgi* 1 year ago
persession.png Add persession.png 1 year ago
userdb.rb Explicitly set $PATH for sendmail process in webrick environment 1 year ago
web.rb add otp.css userdb.rb web.rb 1 year ago
README.md

OneTimePassword auth example

Common Procedure

  1. Clone this
  2. cd $TOP/otp

WebSocket mode

  1. ./otp.rb
  2. Open http://localhost:3000/otp.html

CGI mode

  1. ./web.rb
  2. ./otp-cgi.rb
  3. Open http://localhost:3000/otp-cgi.html