Sumit Verma said the following on 06/02/2011 10:52 AM:
> The main confusion comes from onAuthenticate() being called even when
> I don't have authenticate="true" in the method or if I have
> authenticate="false". So, right now onAuthenticate() method gets
> called for each request if the onAuthenticate() method is defined
> (<cfif endpoint.isOnAuthenticateDefined()> Line 249:
> EndPointManager.cfc). I think it would be better to change that to
> <cfif endpoint.isAuthenticationRequired()> (obviously
> isAuthenticationRequired will need to be implemented).
How would the EndpointManager know if authentication is required for
that particular request?  I see you're suggestion another new endpoint
request life cycle event of isAuthenticationRequired().  My suggestion
was to add a helper method to the REST endpoint only.  To me it seems to
be a lateral move to complicate the life cycle more.

At this point, I'd like to solicit comments from others.  @Doug?

-- 
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/

Reply via email to