【问题标题】:How to implement Twitter Digits Authentication with Azure AD Auth for Asp.net WebApi如何使用 Azure AD Auth for Asp.net WebApi 实现 Twitter 数字身份验证
【发布时间】:2023-03-12 20:39:01
【问题描述】:

我有 ASP.Net Web API,我想使用 Twitter Digits Auth 对我的 API 进行身份验证,稍后会将 Digits token 传递给 Azure Active Directory 身份验证服务。

我对@9​​87654325@ 有所了解,但我很困惑如何将Digits token 提前传递给Azure Active Directory Auth Service。

请看这个我正在考虑实现的图表。

【问题讨论】:

    标签: azure authentication asp.net-web-api azure-active-directory twitter-digits


    【解决方案1】:

    Azure Active Directory Auth Service 是否表示 Azure 应用服务身份验证和授权。如果我理解正确,这种情况将不起作用。

    Azure App Service 身份验证和授权支持两种身份验证流,客户端流和服务器流。您提到的场景是客户端流,它首先从身份数据提供者获取令牌,然后使用该令牌与 Azure AD 交换访问令牌。但是在这种情况下,我们需要直接使用从身份数据提供者(Azure Active Directory、facebook、google、microsoftaccount 或 twitter)发出的令牌。

    如果我理解正确,Digits 令牌 是从 Twitter 支持的 Digits 发出的。 Azure 应用服务身份验证和授权不支持此令牌。您需要检查 Twitter 是否支持将这个令牌换成 Twitter 发出的令牌。

    有关客户端流程的更多详细信息,您可以参考document

    【讨论】:

    • 非常感谢,在这种情况下我不想使用 Azure AD 我只是实现了 Oauth 2.0 任何相同的链接?
    • 关于 Twitter 的 OAuth 可以查看this document
    • 谢谢,但我认为这是不同的,我正在寻找 Digits 令牌与我的 WebAPI 的集成
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-10-14
    • 2020-04-23
    • 2013-03-18
    • 1970-01-01
    • 1970-01-01
    • 2016-12-28
    • 1970-01-01
    相关资源
    最近更新 更多