users@glassfish.java.net

Re: OpenID for Web Apps?

From: <glassfish_at_javadesktop.org>
Date: Fri, 10 Oct 2008 11:40:40 PDT

Hi,

yes I make some tests and I agree with you the the response of the OpenID providers is not XHTML (e.g. myopenid.com)
So i wrote a simple HTML Parser method to get out the expected values.
But this also did not work :-(
I recognize that you expect two <link> Tags

rel=openid.server
rel=openid.delegate

but myopenid.com did not provide the second one. It provides

 rel="openid.server" href="http://www.myopenid.com/server"
 rel="openid2.provider" href="http://www.myopenid.com/server"

could this be the problem?
After changing the OpenIDServerAuthModule class to use my simple htmlParser method the login process now ends with the following last message:


[#|2008-10-10T20:26:20.031+0200|INFO|sun-appserver9.1|com.sun.security.sam.ServletAuthModule|_ThreadID=14;_ThreadName=httpSSLWorkerThread-8080-0;|keyjavax.security.jacc.PolicyContext value org.imixs.shareyourwork.ear-0.9.2/org.imixs.shareyourwork.sywapp-0.6.0_war|#]

[#|2008-10-10T20:26:20.033+0200|INFO|sun-appserver9.1|com.sun.security.sam.ServletAuthModule|_ThreadID=14;_ThreadName=httpSSLWorkerThread-8080-0;|jmac.debug_is_set_to false|#]

[#|2008-10-10T20:26:20.541+0200|WARNING|sun-appserver9.1|com.sun.security.sam.ServletAuthModule|_ThreadID=14;_ThreadName=httpSSLWorkerThread-8080-0;http://www.myopenid.com/server;_RequestID=82c45d07-1c3a-4b09-8db8-d004ed3f3f1e;|openid.associate_failed_to_idp|#]


there is now an RequestID :-) and I can also see on my myopenid Site that there was a request. But it did not complete :-(

Should I send you my changes? Its not a spectacular method I added....

Ralph
[Message sent by forum member 'rsoika' (rsoika)]

http://forums.java.net/jive/thread.jspa?messageID=304608