Liferay Users and Screennames

The Liferay's screenname is a unique token that identifies a liferay user from another, so two users cannot use the same screenname.

The screenname validation process has two different parts when a screenname is created, for instance on new users, or imported users (from an LDAP):

  1. External validation
  2. Internal validation

 

1. External Validation

Liferay accepts a custom validation class defined using the Hook mechanism. This consists in overriding the following property at portal-ext.properties:

users.screen.name.validator=com.liferay.portal.security.auth.DefaultScreenNameValidator

 

2. Internal Validation

Once the external validation has been passed, there are some checks that Liferay implements internally to be consistent.

 

3. How it works

The following workflow explains how Liferay checks if the screenname is valid or not.

 

Screenname Validator Data Flow Diagram

 

0 Attachments
22166 Views
Average (0 Votes)
The average rating is 0.0 stars out of 5.
Comments
Threaded Replies Author Date
useful schema! Daniele Baggio March 13, 2012 6:49 AM
what problems could there be by perhaps hooking... Jack Bakker March 17, 2013 9:33 AM
Thanks for the explanation! In the schema, for... Frédéric Grumiaux December 22, 2014 6:40 AM

useful schema!
Posted on 3/13/12 6:49 AM.
what problems could there be by perhaps hooking internal to allow screenname to be an email address
Posted on 3/17/13 9:33 AM.
Thanks for the explanation!
In the schema, for a character to be valid, looking at the source code, shouldn't it be
isChar(c) || isNumber(c) || c IN {'-','.','_'}
Posted on 12/22/14 6:40 AM.