on 2015 Jul 10 6:32 AM
Is there a way to run custom code after a successful backoffice authentification ?
Thanks.
Request clarification before answering.
Yes, you can.
In the backoffice core jar there is a definition of spring bean:
<beans:alias alias="backofficeAuthenticationSuccessHandler" name="defaultBackofficeAuthenticationSuccessHandler"/>
<beans:bean id="defaultBackofficeAuthenticationSuccessHandler"
class="com.hybris.cockpitng.util.web.authorization.BackofficeAuthenticationSuccessHandler">
<beans:property name="cockpitUserService" ref="cockpitUserService" />
<beans:property name="cockpitLocaleService" ref="cockpitLocaleService" />
</beans:bean>
Write your own AuthenticationSuccess bean, inheriting from BackOfficeAuthenticationSuccessHandler
register it in backoffice-spring-security.xml
call "super.onAuthenticationSuccess" as the first thing in the method "onAuthenticationSuccess"
and then do your things
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.