Thanks aaron, i thinking create one class in php only for
authentication and all my methods in classes called this static
methods for authenticate before serve data.

--- In [email protected], "Aaron Miller" <[EMAIL PROTECTED]> wrote:
>
> You can create the login/logout methods in a parent class and have
all your
> child classes extend it. However, what I did was create one Auth
class which
> gets called for login/logout requests and returns an authentication
token to
> the client. This can be as simple as a session ID, or be a more complex
> object with a user id, user hash (generated at login), "available
> classes/methods", etc. The idea is to pass this authentication token
as a
> parameter to each request, and validate it before serving any data.
> 
> Perhaps there is an easier way to do what you want, but this has
worked for
> me pretty well.
> 
> Best Regards,
> ...aaron
> 
> On 11/18/07, danielvlopes <[EMAIL PROTECTED]> wrote:
> >
> >   Now i understando how use beforefilter, but my question is:
> >
> > I had a little big app in flex using amfphp, i had 11 classes inside
> > services folder, but the problem is if any user create a flex app and
> > point the path to my gateway (using absolute path) they can access all
> > my methods.
> >
> > I need create login, logout methods in all my classes? Exist some way
> > to create those authencation methods in one place and use this for all
> > amfphp requests?
> >
> > Thanks for attention and thanks for the link.
> >
> > --- In [email protected] <flexcoders%40yahoogroups.com>,
> > "danielvlopes" <danielvlopes@>
> > wrote:
> > >
> > > Thanks Muzak, i will try use this code with session in php. ;-)
> > >
> > >
> > > --- In [email protected] <flexcoders%40yahoogroups.com>,
> > "Muzak" <p.ginneberge@> wrote:
> > > >
> > > > See if this helps:
> > > >
> > >
> >
> >
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=2&postId=3201
> > > >
> > > > regards,
> > > > Muzak
> > > >
> > > > ----- Original Message -----
> > > > From: "danielvlopes" <danielvlopes@>
> > > > To: <[email protected] <flexcoders%40yahoogroups.com>>
> > > > Sent: Friday, November 16, 2007 5:21 AM
> > > > Subject: [flexcoders] Re: AMFPHP 1.9 security problem
> > > >
> > > >
> > > > I found this topic in sephirot forum,
> > > > http://www.sephiroth.it/phpBB/showthread.php?t=7966, they said use
> > > > authenticate class in beforefilter amfphp function, i try look
on this
> > > > class in my amfphp folder but i don't understand how use...
everything
> > > > i found about authenticate in amfphp is for amfphp 1.2 and i using
> > > > 1.9beta 2 .
> > > >
> > > > Anyone can help?
> > > >
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> Aaron Miller
> Chief Technology Officer
> Splash Labs, LLC.
> [EMAIL PROTECTED]  |  206-328-5485
> http://www.splashlabs.com
>


Reply via email to