开发者

Implementing DotNetOpenid in my asp.net website

I am trying to implement DotNetOpenid in my asp.net website. However, the more I try to read up on DotNetOpenid, the more confused I get. My initial goal is to allow user login process (similar to StackOverflow).

I attempt开发者_Go百科ed to get some help via this question dotnetopenid tutorial

but was unsuccessful (since I am not using MVC)

How can I get a tutorial that would help me accomplish that?


I would first start at the developers site

  1. Coding Guidelines
  2. Quick Start
  3. Code Snippets


I have been posting my questions here Support Forum. Pretty helpful.


The ASP.NET OpenID web site (C#) project template isn't a tuturial, but it does create a functioning OpenID ASP.NET web site.

I just installed it and was able to get a site up and running. Here are a few gotchas that I ran into:

  1. When you create a new project using the template, do not choose a deep path - this will create problems during database creation.

  2. When you first run the application, you'll hit an exception - don't worry about it. When you get the YSOD, simply browse to the Setup.aspx page mentioned in the instructions.

  3. If you don't have an OpenID, you'll need to get one. The initial page loaded after database creation has a 'Get OpenID' link if you need to get one. It's a simple process and only takes a few minutes.

Once you get through that, you'll have a working implementation of an OpenID web site.

You might also want to check out the DotNet OpenAuth ASP.NET Controls.

HTH

Edit

For anyone interested, there is also an ASP.NET MVC 2 OpenID web site (C#) template. I'm surprised @Andrew Arnott answered the other question and didn't mention these, since he is the author.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜