I have just uploaded the OpenIDUserContrib for TWiki 4.2.0. It adds OpenID login and 1.1 Attribute functionalty to TWiki.
Currently, it disables Registration, and limits authentication to OpenID users.
It has the advantage over the OpenIDAuth apache module, that it automatically requests the User’s OpenId 1.1 attributes like Name, Email address directly from their OpenID identity.
While it trusts the user’s choice of ‘FullName’ registration attribute when displaying who made changes to topics, the TWiki topic source
actually stores the authenticating OpenID URI, thus their user details will be updated from the authentication server next time they log in.
Note that TWiki Topic based Groups are not yet implemented using this Mapper.
Future directions
- add mixing of UserMappers to allow OpenID and ‘normal’ TWiki auth
- turn TWiki into an OpenID identity server
- add Safe Group definition system
- add OpenId to TWiki’s registration process (would require openid auth first, then prefill registration details from any available attributes
- This will require re-writing of TWiki’s inbuilt registration system
- move the list of Known users and their mapping information from
data/OpenIdUsers.txt
to somewhere more scalable. (perhaps DBI)- combine the info TWiki uses persistently with the Session and other caching info OpenID11? uses
Net::OpenID11 (based on Net::JanRain::OpenID)
To make this work, I fixed the Perl bugs I found in Net::JanRain::OpenID, and renamed the resulting modules under Net::openID11 (as it is not OpenID2.0). I expect to upload these packages to CPAN some time soon.
If you want to take a look at the code – goto my Subversion repository