Select to view content in your preferred language

A new widget for tokens and secured services mechanism

842
6
05-19-2011 07:10 AM
ErwanCaradec
Emerging Contributor
Here's a beta version of my loginSecuredServiceWidget :
http://www.arcgis.com/home/item.html?id=5c6e065e885948fd8ab0e570073c8224

Sorry i don't have any secured service available on the www for the demo.

The widget allows you to add secured ArcGIS Services (Only for Dynamic Map services)
to your FlexViewer application at runtime for multiple ArcGIS Servers
  or ArcGIS Server instances.

Prerequisites :
-------------
- Tested on ArcGIS 10 SP1
- This widget uses the ArcGIS Server security and token service mechanisms

How does it work :
----------------
- The widget send user/password/expires parameters to the ArcGIS Server token service
(should use an SSL Connexion)
- The token service generates a token for the identity sent
- The widget displays the list of secured services set in the config Xml file
- Each service have an Add layer/Remove layer button

Hope that helps

Erwan
Tags (2)
0 Kudos
6 Replies
by Anonymous User
Not applicable
Thanks Erwan. This looks promising for a future project.

I have used your SnapShot widget but am having problems compiling the source for viewer 2.3.1. The following line in SnapshotWidget.mxml is causing errors:
var zip:FZip = new FZip("utf-8");


Any ideas?
0 Kudos
ErwanCaradec
Emerging Contributor
kericks,
i've haven't used the 2.3.1 version yet but did you put the fzip library (included in the widget archive) in the library folder of your flex project before to recompile it ?

Erwan
0 Kudos
by Anonymous User
Not applicable
Thanks for the reminder. The fzip got lost in the move to 2.3.1. Everything compiles perfectly now.
0 Kudos
MarkYerington
Frequent Contributor
I keep getting this error when trying to remove the layer.
Error #1069: Property url not found on com.esri.ags.layers.GraphicsLayer

On this line
if (map.layers.url == agsis.url)
I am guessing that this is giving a graphicslayer instead of a dynamicmaplayer
map.layers.url
0 Kudos
RichLeeson
Emerging Contributor
Trying to get the security login to work on 2.3 and I keep getting an error when I press the login icon that says:

Fault Code: ClientCouldNotDecode
Fault info: Error#1085
Fault details:null. 

Any help would be greatly appreciated, this is exactly what I need.
0 Kudos
danbecker
Frequent Contributor
anyone use this widget with v2.5 viewer?

When I click on the lock icon nothing happens?

thanks
0 Kudos