SSL Interceptor with ColdBox 3.1

Anyone using the Ernst's SSL Interceptor with 3.1? Can it work with
SES URLs? I'm having an issue with using it with SES.

I've found the updated version in forgebox. Anyone know how I can use
more than one regex pattern?

I made a simple modification to the interceptor to test a list of regex patterns if anyone is interested.

I’d be interested in that.

Thanks Jonathan.

Nolan

I started with http://www.coldbox.org/forgebox/view/SSL-Support-Interceptor

In my coldbox.cfc I now have a list of regex patterns. Something like:

{class=“myappname.interceptors.SSL”,

properties={

checkSSL =

true,

pattern=

“^sample,^test.function”,

addToken=

false

}

}

The below is the modified isSSLRequired function of the SSL interceptor. Converted the list to array and loop around it. This works with both SES and non-SES. All I did was make it loop.

var isSSLRequired = false;

LOCAL.regArray=

listtoarray(getProperty(‘pattern’));

for (i = 1; i LTE arrayLen(LOCAL.regArray); i = i + 1)

{

if (REFind(LOCAL.regArray[i],event.getCurrentEvent())) {

isSSLRequired =

true;

}

}

returnisSSLRequired;