Implementing OpenID (DotNetOpenAuth) Using Classic ASP

I spent countless hours reading documentation all over the place, and I'm still having trouble implementing the classic ASP samples presented in the latest version of DotNetOpenAuth (3.4.5.10202).

In particular, I'm not sure what values ​​I need to change in login.asp to make sure it works / will work for me. For the code below, if I want to use Google as an OpenID provider, will I change requestURLto www.google.com/accounts/o8/id or www.google.com/accounts/o8/ud? (hyperlink restriction for new stackoverflow user: /)

`realm = "http://" + Request.ServerVariables("HTTP_HOST") + "/classicaspdnoi/"
thisPageUrl = "http://" + Request.ServerVariables("HTTP_HOST") + Request.ServerVariables("URL")
requestUrl = "http://" + Request.ServerVariables("HTTP_HOST") + Request.ServerVariables("HTTP_URL")`

I have a really hard time with this, and we spent about 8 hours researching (i.e. googling until my fingers bleed, and trying to digest thousands of pages of documentation for everything from OpenID to Federated login) than I had to spend.

Any advice or guidance is appreciated.

By the way, I saw this post , but there are no examples of classic ASP documentation outside the text in the example files.

+3
source share
1 answer

You are on the right track. Google OP ID (which you must enter to log in to Google) https://www.google.com/accounts/o8/id

  • realm is the URL of your homepage.
  • thisPageUrl - URL-, .
  • 'requestUrl' - URL- , . OpenID.

, URL-, , , , realm.

, Google , , , . (, ) , .

ASP COM- DotNetOpenAuth v3.4.5 Google. :

-redirectUrl = dnoi.CreateRequestWithSimpleRegistration(Request.Form("openid_identifier"), realm, thisPageUrl, "nickname,email", "fullname")
+redirectUrl = dnoi.CreateRequestWithSimpleRegistration(Request.Form("openid_identifier"), realm, thisPageUrl, "", "email")

. , , Google , RP . RP Discovery - , . : http://blog.nerdbank.net/2008/06/why-yahoo-says-your-openid-site.html. , ASP , , .

0

Source: https://habr.com/ru/post/1763099/


All Articles