Added optional setting to allow to use a field of User other than username to uniquely identify the logged in user ( this field is passed to the consumer).