代码之家  ›  专栏  ›  技术社区  ›  Andrew Duffy

SMS 2FA如何在中实现。NET Core 3.0

  •  0
  • Andrew Duffy  · 技术社区  · 7 年前

    是否可以在一个应用程序中使用SMS实现2FA。net core 3应用程序?

    是的,我看过这一页 https://docs.microsoft.com/en-us/aspnet/core/security/authentication/2fa?view=aspnetcore-1.1&viewFallbackFrom=aspnetcore-3.0 但是接口ISmsSender不再出现在中。NET Core 3.0身份认证。NETCore2.0。

    所以我看不出这是怎么实现的?

    为你的建议干杯

    0 回复  |  直到 7 年前
        1
  •  0
  •   Emin    7 年前

    你并不真的需要一个库,大多数短信网关支持简单的REST呼叫。 像微软这样的图书馆。AspNet。WebApi。客户应该足够了——帖子应该包括以下内容

    curl -X "POST" "https://rest.nexmo.com/sms/json" \   -d "from=AcmeInc" \   -d "text=A text message sent using the Nexmo SMS
    

    API“\-d”to=$to_NUMBER”\-d“API_key=$NEXMO_API_key”\-d “api_secret=$NEXMO_api_secret”

    nexmo有一个。Net库 https://developer.nexmo.com/messaging/sms/overview#sms-api-features

    推荐文章