gpt4 book ai didi

c# - 还有 Microsoft Authenticator 开发 API 吗?我该如何使用它?

转载 作者:行者123 更新时间:2023-12-05 08:14:18 25 4
gpt4 key购买 nike

我不知道我是否应该在这里问这个问题,如果我使用的标签完全正确,但是...我需要向我正在开发的系统添加一个 2FA,而当我在寻找 2FA 的最佳可用选项时,我们考虑为其添加 Microsoft Authenticator 支持(我们喜欢 Authy、Google Authenticator 等,但我们在这里更喜欢 Microsoft 解决方案)。似乎曾经有一种方法可以将 Microsoft 的 2FA 添加到我们的站点,但是现在 2019 年有没有办法做到这一点?如果是这样,它是免费的吗(我们有 Microsoft 开发者帐户......如果拥有它们是唯一的付费要求,我们没问题)

最佳答案

Microsoft Authenticator 只是实现了基于时间的 OTP 机制 (https://en.wikipedia.org/wiki/Time-based_One-Time_Password)。

如果您没有 Azure 帐户,Microsoft 身份验证器可以扫描带有以下嵌入 URL 的二维码

otpauth://totp/UserName?secret=Some-long-secret&digits=6&issuer=CompanyName

Microsoft Authenticator 扫描此 QR 码后,它将开始向您显示一次性密码。在服务器端,您可以使用类似 https://github.com/samdjstevens/java-totp 的库该库可用于生成 secret 或验证 Microsoft Authenticator 生成的 OTP。

关于c# - 还有 Microsoft Authenticator 开发 API 吗?我该如何使用它?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57767763/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com