cancel
Showing results for 
Search instead for 
Did you mean: 

How to override the coreAuthenticationProvider in ycommercewebservices?

0 Kudos
1,306

We are using 6.2 hybris commerce. Currently site is based hybris commerce and cms. We are trying to move to different FE by making use of OCC apis in hybris. In existing application user is authenticated in CRM, for that we have a provider which extends b2baccelerator authentication provider in storefront extension. As we are moving to ycommerece webservices, we are trying to use oauth2 and enabled it for token generation. OOTB authentication is done by core authentication provider. We need to extend the core authentication provider to make authentication initially with custom CRM authentication and then onto core authentication and flow need to go token generation. In this approach we are unable to override or extend the core authentication provider. In some forum questions I see people made a patch on oauth module files. For us it may be not be possible as I need to override or place custom provider in ootb place. Please advise. Appreciate your help

View Entire Topic
pgundoju
Explorer
0 Kudos

Praveen, please take a look at the following components to see if it helps:

<authentication-provider ref="wsAuthenticationProvider" /> - security-spring.xml from ycommercewebservices 
<alias name="defaultWsAuthenticationProvider" alias="wsAuthenticationProvider" /> - oauth2-spring.xml

To introduce new authentication provider for OCC, you need to generate new extension of type ycommercewebservices

0 Kudos

Hi Pavan,

We have created Ycommecewebservices extesnion and it is not possible directly to override that bean in this extension. I have seen some one answered in different question to make patch. So I wonder is that only the way