Steam OpenId in MVC application

后端 未结 2 1867
一向
一向 2020-12-30 17:37

I have never done an openid application before. I did see that MVC 5 has some built in oauth sign ins. I was able to get these to work no problem, as they are already built.

相关标签:
2条回答
  • 2020-12-30 17:42

    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.

    0 讨论(0)
  • 2020-12-30 18:02

    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.

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