So far my Flex apps have been very simple - a bunch of forms with remoting calls. Flex makes this very easy. I typically end up with just small problems of getting my layout just right, or making the format exactly right, but I honestly feel like I "get" Flex in terms of layout and controls.
In order to go a bit further in my skill set, I now want to figure out how to do the following:
- On loading the Flex app, pop up a login screen. I know how to do something on load (I did this with my lemonade stand game). I also know that the remoting calls will be simple. Would this be better using states? States is something else I need more experience with.
- Once logged in, I want my Flex app to work with my CFCs in an authenticated manner. Hopefully I can do this without using roles-based security in my CFCs, but I may start off with that approach to keep it easier.
I'll post as I work on this and share my findings. Hopefully I won't screw it up too badly, but I definitely welcome feedback on the code I end up using.
Comment 1 written by Teddy R Payne on 21 November 2006, at 10:05 AM
Comment 2 written by todd sharp on 21 November 2006, at 10:10 AM
Comment 3 written by Raymond Camden on 21 November 2006, at 10:10 AM
Comment 4 written by todd sharp on 21 November 2006, at 10:12 AM
Comment 5 written by todd sharp on 21 November 2006, at 10:14 AM
Comment 6 written by Raymond Camden on 21 November 2006, at 10:16 AM
Comment 7 written by Raymond Camden on 21 November 2006, at 10:18 AM
For now - I want it to be nice and simple. But your question definitely needs to be addressed.
Comment 8 written by Mike McConnell on 21 November 2006, at 10:56 AM
Have fun!
Comment 9 written by Raymond Camden on 21 November 2006, at 11:09 AM
Comment 10 written by Teddy R Payne on 21 November 2006, at 11:17 AM
Comment 11 written by Mike McConnell on 21 November 2006, at 11:40 AM
My opinion on your question is formed by experience with the typical application user. We have several conventional 32 bit client-server applications in our enterprise environment. All require an initial login and some require additional levels of login based on the function you're trying to access. The latter scenario represents a true pain in the butt for the user. I think an application should be smart enough to take the initial login and apply it as necessary throughout an application. Users HATE (and that is not too strong a word to use in this context) to log-in to anything. Exceptions to the single login model might be where extremely sensitive financial or personnel data are being accessed. You might want, or need in the presence of government regulation, a secondary authentication scheme to serve as an electronic PIN or e-signature (since user name and password combos in the typical business environment are generally not that hard to guess).
M. McConnell
Comment 12 written by Teddy R Payne on 21 November 2006, at 12:31 PM
I agree that users dislike logging in. Also, I was not thinking of multiple post-authenticating event. Hell, that would seriously upset me as the developer to enforce it. I was more playing to activating a post authentication process after you hit a private method. Once you authenticate the private method, you would not have to log in again after that.
I was just curious if anyone has seen any success with a lazy login idea. Login when you need to and not up front.
It was just my curious mind spitting out the abnormal.
Cheers,
Teddy
Comment 13 written by Mike Rankin on 21 November 2006, at 1:24 PM
It works great and feels really natural in terms of user interface.
Comment 14 written by Michael on 21 November 2006, at 1:35 PM
Comment 15 written by Raymond Camden on 21 November 2006, at 1:39 PM
Comment 16 written by todd sharp on 21 November 2006, at 1:59 PM
The concept seems similar to a ViewStack (which seems easier to implement) - can anyone clarify the diff?
Comment 17 written by Mike Rankin on 21 November 2006, at 2:13 PM
Also, the wysiwyg portion of fb2 comes in real handy with view states. I'm sure there are lots of other differences that I can't think of at the moment.
Comment 18 written by Nick Kwiatkowski on 22 November 2006, at 7:27 AM
Comment 19 written by Douglas Knudsen on 26 November 2006, at 12:38 PM
DK
[Add Comment] [Subscribe to Comments]