so login.swf is a separate app that i create in flex?
When you say the short lived token doesn't work, are you referring to the SFV or your own application?If you are referring to the SFV, there are certain events which must only fire AFTER the http token is obtained. All my modifications are done in Mapmanager.mxml.
ctalleygreenville,When you say you use secured map services for the flex app.. do you mean the sample flex viewer or your own flex app?I have not been able to figure out how to use secured services for the SFV since i've been tackling it. I have already created my own flex app to handle secured services/multi-tiered users, but the SFV = no go for me when it comes to security.. please do share with us how you did it. 🙂Sean
That's the only secure way to go. Using Flex as your login screen / validation could be very dangerous from a security stand point.I would still look at locking down the entire DIR some how to protect direct access to the .swf file through a URL.Drew
Depending on your audience you might want to just use IIS and Windows Authentication and protect the entire directory.You will have to map all the files to go through C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll but that can easily be done using 'wild card application maps' in IIS.That's how I do it for a lot of internal applications.Drew
Yeah just use PopUpManager like so: LoginPop = new Panel(); LoginPop.title="Please Login"; LoginPop.width=600; LoginPop.height=500; LoginPop.addChild(LoginModule); LoginModule.loadModule("Login.swf"); PopUpManager.addPopUp(LoginPop,this,true); PopUpManager.centerPopUp(LoginPop); Dump it in the application from the function: creationComplete = "LoginVerify()" Whereby LoginVerify() is the code above.Of course.. if you actually want it to use the token service or login screen that's a different step.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.