Skip to Content
Former Member
May 17, 2016 at 10:03 AM

Spring Security Intercept patterns for the encoded Url Sitename


Hello experts,

We have one storefront and multiple site Architecture of hybris.

We have a requirement where we need to have a separate authorization for different site URLS.we are trying to leverage the spring intercept-url patterns and site name added in url (endcoding attribute)for it. our sample url entry looks like ;

  <security:intercept-url pattern="/site1/cart" access="hasAnyRole('ROLE_SITE1GROUP')" requires-channel="https" />

OOTB Hybris adds encoding attributes for site,Currency and language and if we add site in our security patterns it is not considered.

Any idea if someone has done this before or know how can we include site in intercept patterns.Kindly help.