Select to view content in your preferred language

Flex Viewer and Secure Services

3413
2
Jump to solution
02-04-2013 06:22 PM
ShaunWeston
Frequent Contributor
I wonder if someone could help me understand how Flex Viewer and secure services work for ArcGIS and 10.0 and 10.1?

This is what I understand:

- ArcGIS Server 10.0 and Flex Viewer 2.x - I setup a secured service that authenticated users are only allowed to access. I add this layer into the config file with out a token, run the app and it comes up with an "unauthorized access" error in Flex Viewer

- ArcGIS Server 10.1 and Flex Viewer 3.x - I setup a secured service that authenticated users are only allowed to access. I add this layer into the config file with out a token, run the app and a login screen comes up and for each service that is secured.

This is with SQL server authentication, will it work the same with Windows authentication? Is there a way in ArcGIS Server 10.1 and Flex Viewer 2.x to config it so either a popup comes up or username/password is sent to the service, BUT not using a token?
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
HeatherGonzago
Esri Contributor
The pop-up you describe was introduced at 3.0 and uses the IdentityManager (API) component. This makes handling secure services much easier as all you need to do is provide the u/p credentials and the component handles the token authentication for you. If you wish to have this functionality you will need to use the 3.x version of the Viewer. If you must stay on an older version, you will need to manually handle this functionality.


HTH

View solution in original post

0 Kudos
2 Replies
HeatherGonzago
Esri Contributor
The pop-up you describe was introduced at 3.0 and uses the IdentityManager (API) component. This makes handling secure services much easier as all you need to do is provide the u/p credentials and the component handles the token authentication for you. If you wish to have this functionality you will need to use the 3.x version of the Viewer. If you must stay on an older version, you will need to manually handle this functionality.


HTH
0 Kudos
JillHalchin
Frequent Contributor
Heather,

I've had a Flex Viewer running successfully for several months using Windows Authentication for the services and for the Flex app itself.  User credentials were passed along from Active Directory so that users never got challenged, it just loads.  Very nice.  However, last Tuesday, the viewer started challenging and refuses to accept any log on except for my administrator account, which is used to create the app.  In hopes of a solution, I upgraded to 3.3 and updated AIR, too. But that didn't help.  I hadn't made any changes before that. I'm using the out-of-the-box builder, I'm not a developer because I just don't have time to learn it.  Is it possible that the Identity Manager component didn't install right? Is there any way I can tell?

Thank,
Jill Halchin
Southeast Archeological Center
National Park Service
0 Kudos