Hi,

We have enhanced the function '*addSecurityConstraints*' of '
*TomcatJaggeryWebAppDeployer*' to support HTTP to HTTPS redirection for
Jaggery Apps [1].

The configuration of enabling the function as follows.

   - Configure the http connector's *redirectPort* to https port in
   *catalina-servier.xml*. (By default this is already configured)


   - For ex:
         - redirectPort="9443"


   - Add following attributes to the *jaggery.conf* file of desired Jaggery
   Apps.


   -  "securityConstraints": [
              {
                  "securityConstraint": {
                      "webResourceCollection": {
                          "name": "AppName",
                          "urlPatterns": [
                              "/*"
                          ]
                      },
                      "userDataConstraint": {
                          "transportGuarantee": "CONFIDENTIAL"
                      }
                  }
              }
          ]

Note: This can also be configured to support redirection for specific URLs
of apps as well.

[1]
https://github.com/wso2/jaggery/commit/549f194ddb07777046be09555c411a92a73f7b9c
​Regards,​

-- 
*Milan Harindu Perera *| Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 77 309 7088 | Work: +94 11 214 5345
Email: [email protected] <[email protected]> | Web: www.wso2.com
<http://lk.linkedin.com/in/milanharinduperera>
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to