openid with openid.return_to = null failing

9 views
Skip to first unread message

jiggy

unread,
Jan 19, 2010, 11:02:43 AM1/19/10
to JOpenID Discussion Group
I took the example from the servlet and added it into my page.
When using the example code from MainServlet.java the parameter
openid.return_to remains null and the request fails and shows 'The
page you requested is invalid'. When I fill it in manually I get
redirected to the correct page.
What am I doing wrong?

Erwin Quinto

unread,
Jan 19, 2010, 11:20:30 PM1/19/10
to JOpenID Discussion Group
Hi jiggy,

How did you fill it up manually? Have you already read the "Quick
Start" page? (http://code.google.com/p/jopenid/wiki/QuickStart) After
you have created an instance of the OpenIdManager, you next have to
set your "realm" and "return to" like this for example:

OpenIdManager manager = new OpenIdManager();
manager.setReturnTo("http://www.openid-example.com/openId");
manager.setRealm("http://*.openid-example.com");

jiggy

unread,
Jan 20, 2010, 3:28:16 AM1/20/10
to JOpenID Discussion Group
Ok thank you, that did it.
Reply all
Reply to author
Forward
0 new messages