Quantcast
Channel: Forums - ArcGIS Viewer for Flex
Viewing all articles
Browse latest Browse all 2097

Token Authentication - Flex Viewer 2.4

$
0
0
I am having trouble getting a secure service to work correctly.

I have a secured map service (added it to the Authenticated Users group in AGS 10.0 Server Manager) and generated a token. I can know navigate to it here:

--http://gis.mstn.govt.nz/ArcGIS/rest/services/Test/MapServer?token=jg7PRrPINRwItQRFtCLKEeNTvJBKbcjhPaGFZnufNqw7QFbN-N_Ou_JkoN1UJvIn--

Which seems all good, however when I try add this into my Flex application I get this error:
Attachment 21382

My config is setup like this:
<layer label="Test" type="dynamic" visible="false" alpha="0.7" token="jg7PRrPINRwItQRFtCLKEeNTvJBKbcjhPaGFZnufNqw7QFbN-N_Ou_JkoN1UJvIn"
url="http://gis.mstn.govt.nz/ArcGIS/rest/services/Cadastral/Test/MapServer" />

Where am I going wrong here?
Attached Thumbnails
Click image for larger version

Name:	error.PNG‎
Views:	N/A
Size:	85.4 KB
ID:	21382  

Viewing all articles
Browse latest Browse all 2097

Trending Articles