Select to view content in your preferred language

Login Screen for the Flexviewer

42292
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
Ashwiniw
Deactivated User
I cannot solve "internal database error" upon login, what do I need to do. Please advise. Thanks for the code, great work.. saves me lots of time, I need to get it to work though.
0 Kudos
Ashwiniw
Deactivated User
I cannot solve "internal database error" upon login, what do I need to do. Please advise. Thanks for the code, great work.. saves me lots of time, I need to get it to work though.


Oh, solved the above. What I did was assign the IIS_users permissions to the Arcgis_Security app.. in IIS. And it worked. Got the hint from one of the previous replies in the thread. Thanks! And to get the siteUsage.log working, I had to give write permissions to IIS_users for that file.
0 Kudos
BretAllphin
Deactivated User
Great tool here, and I've been reading through all the posts related to it.

I saw there were several requests for some step by step instructions for implementation; did anyone ever receive those, or would someone who has successfully implemented this be willing to give me a brief run through? (GIS manager here, not much of a programmer...)

This is going to solve a great need here in our shop, as we heavily used secured .net applications and didn't see an easy way to implement the same level of access control on flex applications.

Thanks in advance-
Bret A.
Marietta Ohio
0 Kudos
AndyWhitley
Emerging Contributor
Bret,

I posted the same thing a while back.  Same situation for me as you mentioned.
0 Kudos
JamesFaron
Frequent Contributor
Andrew,

I am finding that the Login Screen does not function as expected in 2.4 in Flashbuilder 4.5.

For some reason that I can't yet figure out, the config.xml is not loaded the same way as in the earlier sdk after the login is completed, and thus my initial extent of the base map is not honored, and the viewer loads with my map fully zoomed in to the lowest scale, i.e. highest zoom.

I wonder if anyone else has this experience?

Thanks,
Jim Faron
0 Kudos
MagalyC_
Deactivated User
Hi!

Is your problem looks like this:
http://forums.arcgis.com/threads/38235-Flexviewer-2.4-initialextent-fullextent-bug?p=129234#post1292... ?

I use the login screen but i didn't know if this problem was due to the login screen...

This problem appears at the first display. If I click on the planet (Full extend - Navigation widget), the display works fine... But my users are lost... 😕
0 Kudos
JamesFaron
Frequent Contributor
The problem is due to the login screen, since if I remove the login screen by reverting the index.mxml back to the original, the application loads as expected, i.e. at initial extent as set in the config.xml.

For some reason the application does not load the map at initial extent from the config.xml in 2.4 when the index.mxml is altered as it is with the login screen. It works fine in 2.3. Perhaps someone from the ESRI flex team can offer some insight.

Thanks,
Jim Faron
0 Kudos
philippschnetzer
Frequent Contributor
Same issue here - works perfect except that the app automatically zooms in as far as possible.  This seems very odd to me.  Can the extent be hardcoded into the index.mxml file instead of the config.xml?

As for some instructions to install, here's what I did:
Replace the index.mxml in your project with the downloaded index.mxml from this widget, place the ArcGIS_Security folder in the root of inetpub/wwwroot on your server.  As mentioned in earlier posts - give ISS_IUSR read/write permissions to the ArcGIS_Security folder.  Go to IIS manager and make the ArcGIS_Security folder into an Application.  Change the 'localhost' in index.mxml to your servers domain.  Good to go.  You can add more users in the users.xml by copying the <user_Validation> tag and creating a new <uid>.

UPDATE: seems to be zooming in only after the second time you login.  Everytime I use a new browser it works fine the first time, then even when the browser is closed and restarted it will zoom in to max everytime...
0 Kudos
AndyWhitley
Emerging Contributor
Thanks Philipp for the install instructions.
0 Kudos
JanieGoddard
Frequent Contributor
Phillip said to replace my index.mxml file with the one I downloaded in the Login code. I don't have an index.mxml file in my FlexViewer. I have an index.html and an index.swf. Do I need to compile something to get this to work?
0 Kudos