cancel
Showing results for 
Search instead for 
Did you mean: 

Running hybris in https only

05-22-2015 10:00 AM
1384 views 5 comments
0 Likes
SAP Managed Tags
Subscribe

How can hybris 5.5.1 Telco Accelerator be configured to permanently run in https mode instead of switching between http and https?

0 Likes

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Likes

You could also try changing it at tomcat level in web.xml.

 <!-- Require HTTPS for everything except /img (favicon) and /css. -->
     <security-constraint>
         <web-resource-collection>
             <web-resource-name>HTTPSOnly</web-resource-name>
             <url-pattern>/*</url-pattern>
         </web-resource-collection>
         <user-data-constraint>
             <transport-guarantee>CONFIDENTIAL</transport-guarantee>
         </user-data-constraint>
     </security-constraint>
     <security-constraint>
         <web-resource-collection>
             <web-resource-name>HTTPSOrHTTP</web-resource-name>
             <url-pattern>*.ico</url-pattern>
             <url-pattern>/img/*</url-pattern>
             <url-pattern>/css/*</url-pattern>
         </web-resource-collection>
         <user-data-constraint>
             <transport-guarantee>NONE</transport-guarantee>
         </user-data-constraint>
     </security-constraint>
christoph_probst
Active Participant
0 Likes

You have to edit the spring-security-config.xml and set requires-channel="https" for all endpoints. Be aware that there may occure some problems with live edit or orbeon forms if you change this. As I know live-edit only works with http connections and orbeon forms only works with https. Hence, you should test them.

hiddebroerse
Participant
0 Likes

In spring-security-config.xml

         <!-- SSL / AUTHENTICATED pages -->
         <security:intercept-url pattern="/my-account*" access="ROLE_CUSTOMERGROUP" requires-channel="https" />
         <security:intercept-url pattern="/my-account/**" access="ROLE_CUSTOMERGROUP" requires-channel="https" />
 
         <!-- Force every page to SSL -->
         <security:intercept-url pattern="/**" requires-channel="https" />

Former Member
0 Likes

This alone does not work as it forces the user to log in.

We want the my account area and the checkout to require authentication as before, the rest of the shop should work without any authentication.

hiddebroerse
Participant
0 Likes

I changed my config example