I'm developing an Alfresco extension using the Alfresco AMP archetype SDK 2.2.0 . I want to customise the authentification system, in order to control some informations about the user before he logs in.
Alfresco is also a web application so just like typical web application you can use filters to intercept user login and get required information there. Alfresco Authentication Service Details you can find here.