FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

SSL Support Interceptor

v2.0 Interceptors
Authors: Luis Majano, Ernst van der Linden, Paul Marcotte Based on the ssl interceptor originally developed by Ernst van der Linden (http://evdlinden.behindthe.net/index.cfm/2008/1/22/ColdBox-SSL-Interceptor-2--SSL-for-specific-events-only) This version of the ssl interceptor uses regular expressions for event pattern matches and will preserve SES urls by leveraging event.buildLink(). Some small changes to the configuration setup are required. See notes below.
Configuration:

Add the following interceptor configuration to you coldbox config.

interceptors = [

{ class="path.to.ssl", 
 properties={
  checkSSL = true,
  pattern = ".*"
 }
}
]

Properties:

checkSSL (boolean) - check the current request is https, TRUE by default

pattern (regex) - a regex pattern for events that must use ssl. '.*' by default
examples:  .*  - all events
^admin - all events beginning with "admin"
2.0
  • Updated to 3.0 standards
  • Updated code for efficiency

$ box install SSL-Support-Interceptor

No collaborators yet.
 
4.50 / 2
  • {{ getFullDate("2009-12-02T18:15:00Z") }}
  • {{ getFullDate("2016-06-10T04:16:06Z") }}
  • 10,484
  • 4,501