cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to customize samlsinglesignon extension in CCv 2005 ?

harish_n2512
Discoverer
870

The Commerce Cloud documentation customization provides information only how to override DefaultSSOService

https://help.sap.com/viewer/f51079eb7d484e1bb89df08e2cdcb6e4/1905/en-US/5b9a994782cd44aba11219f67483...

What is more important is that the documentation is lacking information on how to override the bean entries in spring-security-config.xml

Also, in the latest commerce version 2005, on the cloud portal, it seems ant-customize doesn't work anymore (per documentations, it could be deprecated)

As this extension is not in our control, overriding the beans is really getting tough. I would really appreciate if someone could shower some light on this topic.

View Entire Topic
Eddy_
Explorer

Hi,

we found a solution via the property additionalWebSpringConfigs. This is how it works:

  1. Create an empty extension like mysso
  2. Add new extension to localextensions.xml
  3. Add <requires-extension name="samlsinglesignon" /> to your extensioninfo.xml of mysso.
  4. Add your custom spring-security-config.xml under resources of your new extension. For example: resources/mysso/web/spring/spring-security-config.xml
  5. Add property like samlsinglesignon.additionalWebSpringConfigs.mysso=classpath:/mysso/web/spring/spring-security-config.xml to your project.properties

When building the web context for samlsinglesignon extension, Hybris loads your custom file as well. You will see a message like this when starting the server:


Kind regards

Eddy