setNextEvent with Security

Hi guys,

In my REST App all requests run through a Security interceptor to authenticate/authorize the user and request. In addition I’ve added method security in my handler via:

this.allowedMethods = {getThis=‘GET’,createThis=‘POST’,createThisToo=‘POST’,removeThis=‘DELETE’};

After createThis is executed, I then want to setNextEvent to createThisToo. Since I’m executing a new event, I’m assuming the interceptor will run again as well as the check for the method security. Is this a correct assumption? If this is the case, is there a way I can persist the header information of the REST request as well as ensure that the proper verb (in this case POST) is maintained?

I haven’t actually tried this yet. just thought I would throw the question out to the group prior to writing.

Thanks.

Nolan

Nolan, why would you want to completely redirect the browser to another event? Why not just execute it directly via runEvent()?

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Hi Luis,

I forgot about using runEvent()! That did the trick!

(Still learning…CB is so powerful!)

Thanks!

Nolan

gracias!!

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com