“Generic” OpenID in ASP.NET MVC 5

后端 未结 1 1312
走了就别回头了
走了就别回头了 2021-02-07 17:01

I played around with the new authentication features in ASP.NET MVC 5 (I previously used DotNetOpenAuth).

I understand that the built-in Google provider use

相关标签:
1条回答
  • 2021-02-07 17:56

    I'm in the same situation and I think the answer is "no."

    The key class is Microsoft.Owin.Security.Google.GoogleAuthenticationHandler that implements the OWIN backend handler. It's hard coding the call out to https://www.google.com/accounts/o8/ud in its AuthenticateCoreAsync as well as hard coding the Attribute eXchange request in ApplyResponseChallengeAsync. If there was a better way (i.e. an OpenID base class), I'm assuming they surely would have used it instead of hard coding these two spots. I'm assuming Microsoft didn't make it generic due to schedule reasons or perceived lack of demand.

    I think an open source generic OpenID OWIN middleware would be a great NuGet package.

    0 讨论(0)
提交回复
热议问题