New release in my Remember me/ Auto Logins for Domino/ XWork project

Based on user feedback I got, I created a new release of my Remember me/ Auto Logins project on OpenNTF. This release contains the following changes:

  • Updated error handling in case the configuration could not be loaded correctly (e.g. in case of a missing configuration document). In that case the “remember me” checkbox is also disabled.
  • Sample login form updated for mobile usage.
  • Scheduled agent added to cleanup expired tokens (“Remove expired tokens”).
  • Added remote IP address to token document.
  • -Default- users don’t need the ‘write public documents’ option anymore.
  • UI Cleanup.

Auto Logins for IBM Domino/ XWork server (great for mobile apps!)

I just released version 1 of a new project of mine on OpenNTF. It is called “Auto Logins for IBM Domino/ XWork server“. You can use the application to add a “Remember me” option to any Domino/ XWork login screen. Based on an application setting the server can remember you for a number of days. When you re-visit the server, it recognizes you and will automatically log you in.

This is a great feature for any web (XPage) application, especially mobile web applications: it will make using the application a lot easier/ user friendlier.

The application uses the LTPA generator snippet that has recently been published on the XSnippet site by Serdar Başeğmez (thanks Serdar!). The algorithm that has been used for the remember me feature is described here.

I’ve written the application using a (customized) standard Domino login form and a couple of XPages (using managed beans). The user logging in is remembered by sending him a cookie. That cookie contains a token that is validated against a database of (hashed) tokens, including an expiration date. Note that the user’s password isn’t stored in any way or used in the cookie.

Update: The 1.0 release had local database encryption enabled. Download v1.01 for the version without encryption. 

Automatic synchronisation not working between NSF and on-disk projects

I finally found some time to experiment with how to use source control in Designer. First thing I did was to setup an on-disk project: right click an application and click Team Development > “Set up source control for this application”. I let it create an on-disk project and added/ changed/ removed some design elements.

From what I knew it should automatically synchronize all those changes with the on-disk version of the application. It didn’t…

Took me quite some time (including a Designer re-install) to figure out that this was caused by the fact that I turned of the “Build automatically” option. Apparently the synchronisation process is tied to the build process.

Before committing I’ll test and to be able to test I’ll have to build, so it’s not a big deal. Just something you have to be aware off…