我可以使用DotNetOpenAuth库在WPF应用程序中设置openId登录(Steam)吗?

时间:2019-02-20 12:02:11

标签: c# wpf openid dotnetopenauth steam

我想让WPF应用程序的用户能够将其帐户与Steam关联。据我所知,Steam仅支持OpenId 2.0。

我可以找到的唯一OpenId 2.0库是DotNetOpenAuth,但是该文档集中于ASP.NET。是否可以使用WebBrowser控件在WPF应用程序中执行此操作?

当我尝试将OpenIdRelyingParty实例化为:

var openid = new OpenIdRelyingParty();

我收到以下异常:

System.InvalidOperationException: 'No current HttpContext was detected, so an IOpenIdApplicationStore instance must be explicitly provided or specified in the .config file.  Call the constructor overload that takes an IOpenIdApplicationStore.'

0 个答案:

没有答案