Create My Own OpenId Provider

151 views
Skip to first unread message

Bearded Mantis

unread,
Mar 17, 2010, 2:39:17 PM3/17/10
to DotNetOpenAuth
I need to create my own OpenId Provider for an application I am
working on. I'm having a hard time finding any information on how to
do so.

Is there a good tutorial out there that I am missing?

I have a pretty good idea of how to be a consumer by going through the
MVC template.

Are there any specific classes I should look at on how to be a
provider?

Thanks!

Øyvind Sean Kinsey

unread,
Mar 17, 2010, 2:52:20 PM3/17/10
to dotnet...@googlegroups.com
There are both samples provided with the primary download and Visual Studio project templates available as a secondary download.
https://www.ohloh.net/p/dotnetopenauth/download?package=DotNetOpenAuth+project+templates&release=3.4.1

Øyvind Sean Kinsey
oyv...@kinsey.no
http://kinsey.no/blog/index.php/about/

Andrew Arnott

unread,
Mar 17, 2010, 4:21:47 PM3/17/10
to dotnet...@googlegroups.com
I don't think the project templates will offer much help for writing a Provider.  There are samples included in the primary download though, as Oyvind said.  The Provider in the sample doesn't have a great UI, but the functionality is there for you to adapt to your needs. 

Do you have specific questions that the samples don't answer for you?
--
Andrew Arnott
"I [may] not agree with what you have to say, but I'll defend to the death your right to say it." - S. G. Tallentyre


2010/3/17 Øyvind Sean Kinsey <oyv...@kinsey.no>

Bearded Mantis

unread,
Mar 17, 2010, 5:53:19 PM3/17/10
to DotNetOpenAuth
Ah...I'll check the primary download and see if I still have
questions.

Thanks for the help!

Bearded Mantis

unread,
Mar 17, 2010, 7:03:16 PM3/17/10
to DotNetOpenAuth
I'm trying to run the OpenIdProviderMvc website and am getting this
error:

The view 'Index' or its master could not be found. The following
locations were searched:
~/Views/Home/Index.aspx
~/Views/Home/Index.ascx
~/Views/Shared/Index.aspx
~/Views/Shared/Index.ascx

Am I missing something?

Andrew Arnott

unread,
Mar 17, 2010, 7:27:56 PM3/17/10
to dotnetopenid
That's really weird.  Can you verify that the file is actually on disk? (It should be).  

--
Andrew Arnott
"I [may] not agree with what you have to say, but I'll defend to the death your right to say it." - S. G. Tallentyre


2010/3/17 Bearded Mantis <viraco...@gmail.com>

Bearded Mantis

unread,
Mar 17, 2010, 8:04:11 PM3/17/10
to DotNetOpenAuth
Yeah -- the MVC site looks fine. I'm not sure what's happening. I
just downloaded it, extracted and opened the samples.sln. I couldn't
rebuild the entire solution, because I get a couple compile errors in
the OpenIdOfflineProvider project:

---'System.Diagnostics.Contracts.ContractInvariantMethodAttribute' is
inaccessible due to its protection level

---The type or namespace name 'ContractInvariantMethod' could not be
found (are you missing a using directive or an assembly reference?)

Can't imagine that would interfere with the mvc project though.

Can anyone else download the 3.4.1 version and verify?

I'll try again on my home machine.

Thanks for your help Andrew.

Andrew Arnott

unread,
Mar 27, 2010, 4:14:48 PM3/27/10
to dotnet...@googlegroups.com
Did you ever figure this out?

The build breaks in OpenIdOfflineProvider are because you haven't installed Code Contracts.  I hadn't really meant for Code Contracts to be a requirement for building the samples, so I should fix that.
--
Andrew Arnott
"I [may] not agree with what you have to say, but I'll defend to the death your right to say it." - S. G. Tallentyre


Reply all
Reply to author
Forward
0 new messages