OWIN Authentication.GetExternalLoginInfo()不适用于linkedin,但适用于其他人

时间:2018-06-28 09:42:52

标签: c# oauth oauth-2.0 linkedin linkedin-api

突然我们的“使用linkedin登录”由于某些原因而停止工作,Authentication.GetExternalLoginInfo()现在每次都返回null,而facebook和google返回带有登录信息的正确结果。我已经尝试调试该问题,但我似乎无法弄清为什么其他所有人都能正常工作,而Linkedin无法正常工作。

  • 在startup.configureAuth中,clientid和clientsecret具有 已设置。
  • 我尝试将.providers数据包更新为最新版本。
  • 所有重定向URL在代码和linkedin上似乎都是正确的 开发人员页面。
    • 我们正在使用OAuth 2.0,所以不是

我没有足够的想法来检查或尝试调试,有人对LinkedIn遇到类似的问题吗?

1 个答案:

答案 0 :(得分:1)

LinkedIn将其最低TLS版本升级到1.2。(参考:https://www.linkedin.com/pulse/phase-two-our-tls-10-11-deprecation-plan-miles-mulcare/

将其放入“启动”的ConfigureAuth方法中

System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;