Select to view content in your preferred language

Putting a login screen onto sample flex viewer?

5297
23
05-04-2010 01:47 AM
grahamcooke
Regular Contributor
Has anyone successfully put a login system "in front" of the sample flex viewer? Can this be done using states in flex? If anyone can help me out I'd be most grateful!!
Tags (2)
0 Kudos
23 Replies
seanlo
by
Emerging Contributor
1) LoginMainApp does a HTTPService connect to the rest services.
2) I am currently running mine on java.

If you're simply generating a Long-lived token to access the services, attaching it to the config.xml will work.
If you're retrieving a short-lived token on the fly to access the services, you will need to follow the steps i mentioned above. Mapmanager.mxml HAS to be modified in order for this to work. (Assuming you are using the sample flex viewer)
0 Kudos
GiosiaPoma
Regular Contributor
Thank you for the answer. I've solved my problem yesterday.

All works, I've understand that roles with groups of users stored in active diretory doesn't work. I think that nested group aren't recognized.

I generate on the fly my token, I made the authentication with a php script called by a flash form.

Now the next step is to integrate what done in the sample flex viewer and I think that the solution is in the map manager.

thank you


??? It's normal that I don't receive a notification of your forum reply? I've set to alert me instantly...
0 Kudos
DanielOchoa
Regular Contributor
so login.swf is a separate app that i create in flex?


Did you wind up implimenting this flash login code as a swf, or did you go in a different direction?

Thanks
0 Kudos
grahamcooke
Regular Contributor
I embedded the flex app in an asp.net page, and had the users log in via a .NET website application using asp role/membership functionality.

i did not do any of the login functionality in flex, i stayed with the .NET wrapper idea.
0 Kudos