on ‎2019 Feb 22 7:32 AM
I have a requirement to override the CoreAuthenticationProvider for hac. The bean for this is in the web context of hac. How can I override this bean and inject into the web context of hac.
Hybris version is 5.6
Request clarification before answering.
I am able to achieve this with following steps.
Created MyCoreAuthenticationProvider which extends CoreAuthenticationProvider in the mycore extension.
Created a myhac-spring-security.xml in the mycore extension which contains the customized bean.
<beans:property name="preAuthenticationChecks" ref="corePreAuthenticationChecks" />
<beans:property name="userDetailsService" ref="coreUserDetailsService" />
</beans:bean>
Created a import.xml and imported the myhac-spring-security.xml in it.
Then added the below property in project.properties file of mycore extension hac.additionalWebSpringConfigs.mycore=classpath:/mycore/hac/spring/import.xml
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The code snippet in point #2 is not complete. Please find attachment which has link textthe complete code.
| User | Count |
|---|---|
| 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.