Class OpenIdRegistrationListener

java.lang.Object
ch.tocco.nice2.persist.core.api.util.CollectingAfterCommitListener
ch.tocco.nice2.sso.impl.listener.OpenIdRegistrationListener
All Implemented Interfaces:
ContextListener, EntityListener, CommitListener, EventListener

public class OpenIdRegistrationListener extends CollectingAfterCommitListener
This listener sets the sso fields (sso_subject and relOpenid_provider) according to the corresponding values on the linked user.

This can be used to be able to set openid information on registration (directly setting it is not possible as the principal is created at the end of the registration transaction in a collecting entity listener)