DotNetOpenAuth: How to implement a simple OpenId provider?

Each OpenId provider has a vendor URL (e.g. Google: https://www.google.com/accounts/o8/id )

With the help of OpenIdRelyingParty.CreateRequestme, I was able to redirect the user to the URL of the Google provider and get the provider callback. Everything worked fine.

Now I'm trying to implement my own simple OpenId provider (I want to act like Google in my example). DotNetOpenAuth has a demo version of the provider called OpenIdProviderWebForms. Over the past 4 or 5 hours, I tried to connect to it using the same demo that I managed to connect to Google. First: It’s not clear to me which URL I should call. I tried all Urls (server.aspx, provider.ashx ...) and they all throw the exception "No OpenID endpoint found." All configurations seem beautiful.

How to implement a simple OpenId provider? What url should i call in OpenRelyingParty.CreateRequest?

+5
source share
2 answers

First we define some members:

User-supplied identifier - , ( RP), OpenID. , , . claimed identifier, OP Identifier. : yahoo.com, myopenid.com, andrewarnott.myopenid.com

claimed identifier - OpenID, "" . URL ( XRI). OP ( OP). : https://andrewarnott.myopenid.com/

OP Identifier, " OpenID" - OpenID, RPs , identifier select, RP , . : https://me.yahoo.com/, http://www.myopenid.com/ https://www.google.com/accounts/o8/id

OP Endpoint - URL-, RP , OP. : http://localhost/server.aspx, http://localhost/provider.ashx, https://www.google.com/accounts/o8/ud ( ud id)

, OpenIdRelyingParty.CreateRequest , OP. OP. , :

openIdRelyingParty.CreateRequest("http://localhost/sampleop/")

openIdRelyingParty.CreateRequest("http://localhost/user.aspx?username=bob")
+16

MVC DotNetOpenAuth URL- http://localhost:4864/User/Identity ( OpenIdProviderMvc 4864 )

+2

All Articles