Select to view content in your preferred language

Login Screen for the Flexviewer

41215
121
03-15-2011 10:52 AM
andrewj_ca
Frequent Contributor
Just posted some code for a Flexviewer login screen.  I hope somebody can get some use from this.

http://www.arcgis.com/home/item.html?id=baebcaf317994d63902bc9735c0657e0
Tags (2)
0 Kudos
121 Replies
PetraStrbenac
Deactivated User
Hi Andrew,

first of all thank you for sharing your login sollution! It has saved me a lot of work and possible misery :).
I have successfully implemented login screen and everything works great!

I was wondering is there a way I could use the value of user variable (username) to display a username of a logged user in my flex application (after successful login of course) - for example to display something like "You are logged in as <user>" or "Welcome <user>" (i am completely new to flex and programming, but i am keen to learn).
I would also like to use the value of this variable when user edits some of my features (through a widget connected to my published geoprocessing service). I would like to accomplish that each record in my editable feature class has a name of a user that created it.

Any ideas how to do this? Any help or advice would be highly appreciated!
Petra
0 Kudos
JacobBoyle
Deactivated User
I just wanted to thank you for this tool, works great!
0 Kudos
baixuehong
Emerging Contributor
I wondered why the password and the username were different from the words you mentioned in your article. I saw in the user.xml file, i.e. <username>arcgis</username><password>pa$$word</password>
and I put them everything was just OK. Thank you for your login window. My teacher asked me to create a window just as yours, but I can not code, with your code, and I can complete it. THS in the end.
0 Kudos
tanyabisen
Emerging Contributor
Hi I am trying to implement Login screen for my application.I want to know how do you implement this code step by step.. I am new on this technology,whenever I try to enter username and password it throws Internal Database error..

I am using ASP .net Development Server.. Please help me on this.
0 Kudos
tanyabisen
Emerging Contributor
Hi I am trying to implement Login screen for my application.I want to know how do you implement this code step by step.. I am new on this technology.. I could solve internal database error by replacing the URL .. but now I am getting Invalid Login error..

even i invoke my soap service i get output as false..I tried debugging the code,it throws error on first line of vb code..where you are trying to do configuration manager settings..It throws exception and returns "false" value... Where I am going wrong,I am not able to figure out

I am using ASP .net Development Server.. Please help me on this.
0 Kudos
tanyabisen
Emerging Contributor
I could get the login screen working...but moment i close Visual Studio where I have created my webservice... I am not able to login into my application..How do I solve this issue now...
0 Kudos
tanyabisen
Emerging Contributor
Hello Andrew,

Hey I could get the login screen working completely for my application done in Flex API.. Thank you so much for this wonderful tool..

Thanks,
Tanya
0 Kudos
PetraStrbenac
Deactivated User
Hi, I have a geoprocessing widget with "user" being one of the parameters (string). I am using Andrew's Login Screen for my flex app and would like to populate "user" parameter automatically (when widget opens) with username (a user) that signed in my application. Do I have to make same changes to Login Screen files (like Service.vb) to capture "user" variable and how do I "pass" it to geoprocessing widget?
Any help or advice would be highly appreciated!
Petra
0 Kudos
PetraStrbenac
Deactivated User
Is there also a possibility to get users ip address through this service so that siteUsage.log also provides ip address (along with site, username, password, status and timestamp)?
0 Kudos
AndyWhitley
Emerging Contributor
I would like to find some documentation on how to add this to my code.  I have downloaded the .zip file.  I am using Flash builder 4.5 and using the developers code.  I am some what of a newbie at flex.


Thanks Andy
0 Kudos