[Yanel-dev] User Properties / IML

Oli Kessler ok at ncode.ch
Sun Oct 28 23:22:44 CET 2007


Hi all,

We need to introduce additional user properties within a project and  
would propose to do this in the yanel core as all of them are easily  
reusable:

- account expiration
- homepage (default page after login)
- last login (date, to be written on successfull login)

Also, a facility to write application specific, custom properties to  
the user object would be very helpful.

We'd thus like to extend the current IML like this:

<identity id="foo" xmlns="http://www.wyona.org/security/1.0">
   <name>Foo Account</name>
   <description>Bars</description>
   <email>foo at bar.com</email>
   <password type="md5">xxx</password>

   <expire date="2007-12-24T00:00:00"/>
   <hompage>/en/topics/dashboard.html</homepage>
   <lastLogin date="2007-10-26T16:34:22"/>

   <custom:properties xmlns:custom="http://www.foobar.com/yanel/ 
security/1.0">
     <custom:locked>false</custom:lock>
     <custom:failedLogins>7</custom:failedLogins>
     <custom:welcomePage>/en/global/motd.html</custom:welcomePage>
   </custom:properties>
</identity>

A custom IdentityManager will make use of the additional properties,  
while account expiration checks and redirect to the homepage should  
be implemented in the default IdentityManager IMHO.

What do you think?

Thx,
-ok


More information about the Yanel-development mailing list