there.
Thanks for the hint about using JAAS via CallBackHandler, etc in th eother thread...I have not got it working 100% on JRun yet...but still banging away at it.
DK
On 9/26/05, Dimitrios Gianninas <[EMAIL PROTECTED]> wrote:
Where did you hear that it was not the approach to take? We have it working this way for one of our projects.Yes, when you user source="servlet", you must configure the source attribute in the remote-objects section of the flex-config.xml. You have to set it to the name of your context. So if your web application context is "localhost:8080/batman", then you must set:<source>batman</source>or for no security at all (don't do this in production):<source>*</source>Dimitrios "Jimmy" GianninasRIA DeveloperOptimal Payments Inc.
From: [email protected] [mailto:[email protected]] On Behalf Of Douglas Knudsen
Sent: Sunday, September 25, 2005 9:51 PM
To: [email protected]
Subject: Re: [flexcoders] Authentication with Macromedia FlexI was under the impression this was not the approach to take in 1.5. IIRC, when messing with source= "servlet" I had to add some info to the flex.config file. Can you comment on this? Just curious as there seems to be so many ways to do this.
DK
On 9/24/05, Dimitrios Gianninas <[EMAIL PROTECTED] > wrote:Ok here is how to do this.Basically you will have a login.jsp page that will authenticate the user using FORM authentication. Once the user has logged in successfully, then you must retrieve the user information from your DB and save it to the session, this might look something like this:UserVO user = userAdmin.getUser( userName );session.setAttribute( "user", userLogin );Now that the user object is in the session, once the Flex app loads, you can retrieve it from the session and make use of it as you please. First you must declare a RO that will connect with the current session:<mx:RemoteObject id="sessionSvlt" source="servlet"result="handleSessionResult( event.result)"fault="handleSessionFault(event)"showBusyCursor="true" />And then you get the object from the session like so:
sessionSvlt.session( "get", "user" );Dimitrios "Jimmy" GianninasRIA DeveloperOptimal Payments Inc.
Hi all,
From: [email protected] [mailto: [email protected]] On Behalf Of jagabcdeff
Sent: Friday, September 23, 2005 7:08 AM
To: [email protected]
Subject: [flexcoders] Authentication with Macromedia Flex
I working on small application.
The flow is like Macromedia Flex<->Spring<->Hibernate<->DB using Jboss
Server.
Now i have to use JAAS to this application.
Please guide me how to do authentication when user login with username
and password .
Thanks & Regards,
Jagan
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development Computer software development Software design and development Macromedia flex Software development best practice
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development Computer software development Software design and development Macromedia flex Software development best practice
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

