Hi Beth and Dasa.
Would either of you be able to clarify this example a little bit more; I'm still having a little trouble wrapping my head around how to make this whole login window work.
I am using the source code to the Flexviewer application, and my application is a modified version of this using some custom widget containers I have designed. I therefore copied the SignInWindow class into src/com/esri/viewer/skins directory in order to have access to it in my project.
I am presuming that the whole IdentityManager functionality checks against users that are created within ArcGIS Server Manager, correct? (I have users created there and the server enabled to utilize those users as opposed to Windows domain users)
I am still baffled as to how I might have the sign-in window appear and challenge the user when they access my viewer. I am not certain where I place the "IdentityManager.instance.signInWindowClass =skins.CustomSignInWindow;" or the "import com.esri.ags.components.IdentityManager;". Does something like this go in the <index.mxml> component?
I am of course looking to limit users utilizing the viewer and services it provides, but I am hopeful that by logging in, I can access their username/login within my application. That is the username will be an email address, which I would like to be able to pass to a widget they will access, which in turn will pass that along to a custom GP service. Once the user successfully logs in, how am I able to access the username information in this manner?
Thanks for any thoughts and guidance on this. If you need any more elaboration/clarification, please let me know; I'll try my best to explain better.