" + Server.HTMLEncode(Err.Description) + "
" End If On Error Goto 0 if Not authentication Is Nothing then ' if this WAS an OpenID response coming in... If authentication.Successful Then Session("ClaimedIdentifier") = authentication.ClaimedIdentifier If Not authentication.ClaimsResponse Is Nothing Then Session("Email") = authentication.ClaimsResponse.Email Session("Nickname") = authentication.ClaimsResponse.Nickname Session("FullName") = authentication.ClaimsResponse.FullName End If Response.Redirect "MembersOnly.asp" else Response.Write "Authentication failed: " + authentication.ExceptionMessage end if elseif Request.Form("openid_identifier") <> "" then ' if the user is only now starting the authentication flow... dim redirectUrl On Error Resume Next thisPageUrl = "http://" + Request.ServerVariables("HTTP_HOST") + Request.ServerVariables("URL") ' this is the URL that will receive the response from the OpenID Provider. ' redirectUrl = dnoi.CreateRequest(Request.Form("openid_identifier"), realm, thisPageUrl) redirectUrl = dnoi.CreateRequestWithSimpleRegistration(Request.Form("openid_identifier"), realm, thisPageUrl, "nickname,email", "fullname") If Err.number <> 0 Then Response.Write "" + Server.HTMLEncode(Err.Description) + "
" Else Response.Redirect redirectUrl End If On Error Goto 0 End If %>