OpenId Service Provider

Nov 2, 2011 at 3:44 PM


We currently have a MVC application which users forms authentication and we would like to introduce a forum into the site and share the authentication across applications. From looking at your documentation the easiest way to do this is "expose a OpenId Service Provider" from our current site. I'm new to OpenId and just wondered if you had anymore information on how to go about this.




Nov 2, 2011 at 3:51 PM

Hi John,

You can develop an OpenId service provider using DotNetOpenAuth, it's very straight forward.

One of the sample projects delivered on the Dotnetopenauth release is a sample of an OpenId service provider (i think the project is called OpenIdWebRingSsoProvider).


If you need further assistance don't hesitate to ask!

Kind regards,


Nov 2, 2011 at 3:53 PM

Thanks for the instant reply, just firing up the example now.

Nov 2, 2011 at 4:16 PM

Thanks, with not being familiar with OpenID I'm not entirely sure were to start with this. Do you have any further documentation regarding the integration with nearfourms?


Nov 2, 2011 at 4:34 PM

The integration itself is not an issue, once you create a service provider copy the url of the (something like http://yoursite/loginopenid) to the element ssoOpenid in the configuration file Site.config, located in the folder <... site root...>/Config/Site.config.

The only task is to create the service/identity provider, the flow will be something like:

  1. Nearforums site redirects to http://yoursite/loginopenid (set in configuration)
  2. The user enters the username and password of yoursite on the form at http://yoursite/loginopenid
  3. If the credentials are OK, yoursite redirects to the Nearforums site and Nearforums "communicates" with your site to ask if that user (with a token) has been identified.
  4. If all OK, Nearforums "logs in" the user in session.

The steps 2 and 3 of the flow need to be implemented in your website. To do that, I can not help you much, check the sample projects on Donetopenauth...

Kind Regards,