[openid4java] SEVERE: java.lang.IllegalStateException: Destination URL not set; is this a received message?

40 views
Skip to first unread message

OpenID Provider Implementor

unread,
Apr 20, 2010, 7:39:02 PM4/20/10
to OpenID4Java
Hello,

I am trying to code a OpenID Provider. When I receive a request from
the RP with mode=check_authentication, I try to respond using these
lines of code -

ParameterList parameterList = new
ParameterList(httpRequest.getParameterMap());
Message authResponse = manager.verify(parameterList);
httpResponse.setContentType("text/html;charset=UTF-8");
String responseText = authResponse.keyValueFormEncoding();
String redirectionURL = authResponse.getDestinationUrl(true);
httpResponse.sendRedirect(redirectionURL);

But, authResponse.getDestination() fails, complaining -

SEVERE: java.lang.IllegalStateException: Destination URL not set; is
this a received message?

This caused when the RP calls the verify() method. This is the
exception trace for that call -

SEVERE: org.openid4java.message.MessageException: 0x100: Required
parameter missing: is_valid
at org.openid4java.message.Message.validate(Message.java:189)
at
org.openid4java.message.VerifyResponse.validate(VerifyResponse.java:
105)
at
org.openid4java.message.VerifyResponse.createVerifyResponse(VerifyResponse.java:
62)
at
org.openid4java.consumer.ConsumerManager.verifySignature(ConsumerManager.java:
1811)
at
org.openid4java.consumer.ConsumerManager.verify(ConsumerManager.java:
1179)

Where am I going wrong?

--
You received this message because you are subscribed to the Google Groups "OpenID4Java" group.
To post to this group, send email to openi...@googlegroups.com.
To unsubscribe from this group, send email to openid4java...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openid4java?hl=en.

Reply all
Reply to author
Forward
0 new messages