Quick reply:
On your remote Object (if you are connecting to cf trough remoting) you can set
credentials like this:
myRemoteObject.connection.setCredentials(myUser,myPassword);
myRemoteObject.callSomeMethod(someArgs);
on Application.cfc you can set inside onRequestStart function
<cflogin>
<cfif isdefined("cflogin")>
<cfset myuser = cflogin.name/>
<cfset mypwd = cflogin.password/>
<!--- Your authentication process comes here --->
<cfloginuser ..../>
</cfif>
</cflogin>
Then you can check if the user is authenticated inside of your "callSomeMethod".
João Fernandes
Secção de Desenvolvimento
Departamento de Informática
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of geisergd
Sent: sexta-feira, 20 de Janeiro de 2006 14:30
To: [email protected]
Subject: [flexcoders] Custom Login
I am a ColdFusion programmer trying to transition to flex. I have
built a custom login window that displays, but doesn't do anything.
My goal is to use the information from the login to attempt
authentication to an Oracle database. If the user can't authenticate,
I want to connect the user using a dummy user with read only privs.
If the user can authenticate, he can see more of the page. Does anyone
have a basic (step-by-step) set of code for this?
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/