You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
say'You have enabled multi-factor authentication. Please enter OTP code.'
250
+
ask'Code: '
250
251
else
251
-
say"You have enabled multi-factor authentication. Please enter OTP code from your security device by visiting #{webauthn_url} or your authenticator app."
252
+
wait_for_response(webauthn_url)
252
253
end
254
+
end
255
+
256
+
defwait_for_response(webauthn_url)
257
+
require"cgi"
258
+
# server = TCPServer.new 0
259
+
# server_addr = server.addr[1].to_s
260
+
261
+
# for the prototype we hardcode this port
262
+
server=TCPServer.new5678
263
+
server_addr=5678
264
+
265
+
webserv=Thread.newdo
266
+
begin
267
+
loopdo
268
+
# loop until a non preflight response is sent and code is received
0 commit comments