I also try it on my local App Engine DEV server but no luck.
I changed all 8000 to 8080 as per the App Engine Development Server,
but still
when I click Submit, I get the 'Invalid Request' page.

Any suggestions?

Thanks.

On Jul 21, 7:57 pm, Bottiger <bottig...@gmail.com> wrote:
> I've uploaded to my website the minimal version of the working OpenID
> implementation application. Just unzip in your application directory
> and go tohttp://127.0.0.1:8000/openid/client/startOpenIDto start.
>
> I couldn't create a w2p file from it because Web2Py kept complaining
> about an internal error.
>
> http://www.codexon.com/temp/openid.zip
>
> On Jul 21, 4:27 pm, Bottiger <bottig...@gmail.com> wrote:
>
>
>
> > Yes, I accidentally missed your 2nd message and fixed it on my own. I
> > also found another error.
>
> > So as a canonical reference, here are the 3 things that need to be
> > edited to get Massimo's OpenID to work.
>
> > 1.
>
> > trust_root = 'http://127.0.0.1:8000/openid/client/startOpenID
> > change this to
> > trust_root = 'http://127.0.0.1:8000/openid/client/
>
> > 2.
>
> > remove this extraneous line at 105. It creates a URL html tag when it
> > is supposed to be a simple URL.
>
> > return_to = URL(r=request,f='finishOpenID')
>
> > 3.
>
> > change this at line 130. sreg_response was None for me. I believe sreg
> > is an optional argument that some OpenID providers may not provide.
>
> > 'sreg': None if sreg_response is None else sreg_response.items(),
>
> > So now we finally have a long overdue working OpenID implementation
> > for Web2Py.
>
> > On Jul 21, 1:14 pm, Hans Donner <hans.don...@pobox.com> wrote:
>
> > > commenting out the return_to in finishOpenID did the trick (it will
> > > take the return to as defined in the constant. The URL only provides a
> > > path without the servername.
>
> > > So two minor changes made it work...
>
> > > On Tue, Jul 21, 2009 at 22:07, Hans Donner<hans.don...@pobox.com> wrote:
> > > > I've used Massimo's code, installed it in a new app and executed it
> > > > (using myopenid).
>
> > > > I'd had to change
> > > > #trust_root = 'http://127.0.0.1:8000/openid/client/startOpenID'
> > > > trust_root = 'http://127.0.0.1:8000/openid/client'
> > > > return_to = 'http://127.0.0.1:8000/openid/client/finishOpenID'
>
> > > > to give me a proper reponse
>
> > > > Otherwise I got:
> > > > u'http://127.0.0.1:8000/openid/client/finishOpenID?janrain_nonce=2009-0...
> > > > not under trust_root
> > > > u'http://127.0.0.1:8000/openid/client/startOpenID'
>
> > > > Does that help you? (the error message you posted is not helping here)
>
> > > > The next stop is web2py's response:
> > > > message
> > > > :
> > > > something heppened:{'failure_reason': "return_to does not match return
> > > > URL. Expected '/openid/client/finishOpenID', got
> > > > 'http://127.0.0.1:8000/openid/client/finishOpenID?janrain_nonce=2009-0...";,
> > > > 'error': 'OpenID authentication failed.'}
>
> > > > On Tue, Jul 21, 2009 at 10:46, Bottiger<bottig...@gmail.com> wrote:
>
> > > >> I don't need wireshark. Its in plain sight. The problem is I have no
> > > >> idea what is wrong with it.
>
> > > >>https://open.login.yahooapis.com/openid/op/auth?openid.assoc_handle=c...
>
> > > >> where test.domain.com is an actual subdomain I own that is mod_proxied
> > > >> to web2py.
>
> > > >> On Jul 21, 1:18 am, Yarko Tymciurak <yark...@gmail.com> wrote:
> > > >>> you might try looking at what gets sent back and forth to try to 
> > > >>> discover
> > > >>> what's wrong;  wireshark or LiveHTTPHeaders for Firefox might help...
>
> > > >>> On Tue, Jul 21, 2009 at 3:10 AM, Bottiger <bottig...@gmail.com> wrote:
>
> > > >>> > I've been trying to get Massimo's OpenID implementation to work, 
> > > >>> > which
> > > >>> > seems to be the only OpenID implementation for Web2Py.
>
> > > >>> > It doesn't seem to work with either Yahoo or Google, each time 
> > > >>> > saying:
>
> > > >>> > "Sorry! Something is not quite right with the request we received 
> > > >>> > from
> > > >>> > the website you are trying to use. Please try again in a few 
> > > >>> > minutes."
>
> > > >>> > I've hosted it on a public domain and changed trust_root and 
> > > >>> > return_to
> > > >>> > variables to be valid, so I know its not a localhost problem. So 
> > > >>> > far I
> > > >>> > can't figure out what's wrong, as it seems to look exactly like the
> > > >>> > Django example on the python-openid site.
>
> > > >>> > Does anyone have similar problems or suggestions? I already know 
> > > >>> > about
> > > >>> > CAS and I don't want to use it.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to