android - 在非 google android 应用程序中使用 Google Authenticator

标签 android security google-authenticator

我想在我的应用程序中使用 Google Authenticator 作为安全锁之一。我想知道是否有公共(public) API 可用于为此目的使用 Google Authenticator。这是一个非谷歌安卓应用程序,不需要谷歌账户。

感谢和问候,

最佳答案

你当然可以。您不需要 API,Authenticator 完全是 open source ,并且不需要与 Google 服务器通信。如果您进行简单的身份验证,还有一个方便的 PAM。本质上,您需要从输入到手机应用程序的身份验证模块中获取一个 key ,然后您就可以开始了。

here有关将其用于第二因素 ssh 的示例。

关于android - 在非 google android 应用程序中使用 Google Authenticator,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19113444/

相关文章:

android - 使用 httpclient 和 asynctask 取消文件下载

Perl Authen::OATH 和 Google Authenticator - 不兼容?

android - 应用卡在 camera.release() 上

android - Android 上的嵌套 MVP : how to

android - Android 应用程序上的 NFC

security - Https - 互联网断开后 token 失效?

javascript - 用 Javascript 构建 HTML 字符串真的不安全吗?

android - 我该怎么做 "Authenticating Your Client with Google"?

android - 如何在 Android 上对 RxJava Completable.error 进行单元测试