简体   繁体   English

如果我有一个程序使用 2FA (Authy) 来验证我的连接,我是否能够自动收集 2FA 代码?

[英]If I have a program which uses 2FA (Authy) to verify my connection, am I able to gather the 2FA code automatically?

I have a program.我有一个程序。 It uses 2FA to log in, and I am trying to make an API which uses the program.它使用 2FA 登录,我正在尝试制作一个使用该程序的 API。 I am having trouble finding any answers on google, probably because I am using the wrong key words (The search "Authy API" or "2FA API" yields results to how to implement Authy, not how to gather the 2FA code to sign in)我在谷歌上找不到任何答案,可能是因为我使用了错误的关键词(搜索“Authy API”或“2FA API”会产生如何实现 Authy 的结果,而不是如何收集 2FA 代码以登录)

If I am googling the wrong thing, how should I word what I am looking to find?如果我在谷歌上搜索错误的东西,我应该如何说出我要查找的内容? I appreciate any help:)我很感激任何帮助:)

Twilio developer evangelist here. Twilio 开发人员布道师在这里。

Adding 2FA to an account is intended to stop automatic logins and require a user to produce a code from something they have (in this case, their phone number and authorised device), so side-stepping this is not supported or recommended.向帐户添加 2FA 旨在停止自动登录,并要求用户从他们拥有的东西(在这种情况下,他们的电话号码和授权设备)中生成代码,因此不支持或建议回避此操作。

You can only get the code from the device you have registered, or via SMS or phone call.您只能从您注册的设备或通过短信或电话获取代码。 It is TOTP, as Evert suggests, but the secret is generally not shared with you (it is sent to the Authy application over an encrypted channel and cannot be retrieved from the app either).正如 Evert 建议的那样,它是 TOTP,但秘密通常不会与您共享(它通过加密通道发送到 Authy 应用程序,也无法从应用程序中检索)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM