Steam OpenId in MVC application

懵懂的女人 提交于 2019-11-30 07:42:36

Go to Tools > Library Package Manager > Package Manager Console and type:

Install-Package Owin.Security.Providers

Open your App_Start\Startup.Auth.cs, and add:

using Owin.Security.Providers.Steam;

Then, in the ConfigureAuth method, add:

app.UseSteamAuthentication("your API key");

You can get an API key from http://steamcommunity.com/dev.

A "Steam" button should be added to your login page.

Here is an excellent tutorial on how to integrate openid with ASP.NET MVC, and it do have working code, and instructions. Please have a look and get going.

http://weblogs.asp.net/haithamkhedre/archive/2011/03/13/openid-authentication-with-asp-net-mvc3-dotnetopenauth-and-openid-selector.aspx

Hope this helps.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!