Doug said the following on 06/03/2011 04:17 PM: > Good discussion. It seems to me that if we have to call a lifecycle > method related to auth for every endpoint that implements auth, the > current onAuthenticate() lifecycle method works for either case. So, > I'd keep that as it is. I like Peter's suggestion to add an > isAuthenticationRequired() helper method to make each endpoint's > onAuthenticate() method more streamlined. I'd rather do that than add > another lifecycle method related to auth. Good explanation Doug. The rest:authentication is only metadata -- the onAuthenticate still needs to be implemented and access that metadata to see if authentication is needed.
I agree -- I'll add a helper method to the REST base endpoint called isAuthenticationRequired(arguments.event) to aid in this process: http://trac.mach-ii.com/machii/ticket/789 .pjf -- Peter J. Farrell [email protected] [email protected] http://blog.maestropublishing.com Identi.ca / Twitter: @maestrofjp -- To post to this group, send email to [email protected] For more options and to unsubscribe, visit this group at http://groups.google.com/group/mach-ii-for-coldfusion?hl=en SVN: http://svn.mach-ii.com/machii/ Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/
