|
FYI, starting to review the patch.
First of all: it's a great peace of code (there is even a configured names query in both hql and xpath
Some comments:
The newly introduced forms have to be styled.
In order to set the realm it needs to be possible to get the current server URL.
More or less feature complete now.
Still missing:
To test it you need an OpenID. Probably you have already one. Look at http://openid.net/get/ After creation of the OpenID you have to register yourself as an OpenID user. For OpenID 2.0 providers (yahoo, myopenid and probably many others) you can just enter yahoo.com or myopenid.com. After registration you can log in by doing the same thing. Just enter your OpenID in the right field and you'll be redirected to your OP and back to XWiki. Added an action to attach an OpenID to an already existing user account. Currently it works just when logged in as administrator (surf to /xwiki/bin/attachopenid/XWiki/AttachOpenID).
OpenID authentication is now fully implemented. The only remaining task is to integrate the AttachOpenIdAction into the user profile page so that it's easily accessible and set the right permissions for that action (any authenticated user should be allowed to call it). OpenID authentication support is now fully implemented. All patches are bundled in the attached ZIP-file "openid-authentication-patches-20080819.zip".
The patch openid-patch-web-20080819.patch in the ZIP file contains a wrong version of the registerinline.vm template. The newly uploaded patch openid-patch-web-20080820.patch resolves this problem.
I don't have much to comment on the last patch.
Just one thing: it would be great to have also as much as possible unit and integration tests. I think this means use some embedded OpenId server (I searched a little but could not fiind one maybe you know some tool for it) for integration/selenium tests or some mockup for unit tests. For unit tests you can look at xwiki-core project /src/test/java and integrations test are located in xe destrbutions-tests sub module. I don't know any embedded OpenID server. Also it's not easy to test such a thing. The used library is fully unit tested so there shouldn't be much problems. Maybe the easiest thing would be to test it with a (or more) public OpenID servers like MyOpenID.com or Yahoo. But I don't know if this really makes much sense.
I attached the latest patch bundle to XWIKI-2630
Please don't forget to apply also the styles |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Still missing:
Maybe the OpenID helper class should be transformed in a plugin!?