<serverUrl url="https://MYDOMAIN/ArcGIS/rest/services" //This works at the root level but can also be set to individual folders or services if preferred matchAll="true" //This indicates that all sub-folders/services from the url above can be accessed if the credentials match - set this to false if the url is set to a specific service only dynamicToken="true" //This indicates that it will create the token at runtime based on the username and password userName="MYUSER" //valid username with access to the service(s) required - does not need to be the same as the application login - need to be an identity that can access the service password="MYPASSWORD" //password for this username host="MYHOSTNAME"> </serverUrl>
Setup instructions are in the main API help herehttp://help.arcgis.com/en/webapi/flex/help/index.html#/Using_the_proxy_page/017p0000000v000000/After that you just need to make sure the proxy is referenced in your config.xml as described herehttp://resources.arcgis.com/en/help/flex-viewer/concepts/Index.html#/Using_a_proxy_page/01m30000000w000000/
Simon, No, I don't have any particular reason for not using a proxy page. Can you point me in the direction of where I can find the walkthrough of the setup process? I did a search in the help section and I couldn't find it.Thanks
Joseph,Is there any particular reason you cannot set up a proxy page - it's a very straightforward process to do and the best way to keep the user credentials for the services hidden. The help files give a great walkthrough of the setup process - takes about 10 minutes!
I am also using IIS basic/windows authentication to secure my FV 3.0 application. I do not have any security on my services because I'm also trying to avoid my external users from having to supply their credentials for every secured service in the web application. At the same time, I need the services to be secure without having the credentials prompt pop-up. I am not working with a proxy page so my scenario is only #1 and #2 from the list above. Is there a way to disable the prompt with secured services without using a proxy page? Thanks
Hi Simon,What you are trying to do is pretty common. Just to make sure that we have it correct:1) You are accessing your Flex Viewer app via a asp login, I'm assuming you are using IIS authentication to access this?2) You then are trying to work with some secure services. You do NOT want your users prompted for credential info correct?3) You have a proxy page configured to point to these services with the servername and info passed in via the proxy config?4) If all this is correct, the info in the proxy should provide the credential info without having to be prompted by the Identify Manager.
Heather - that did the job! A couple of queries around that though - I ran that change on a version of the viewer code where I'd already made the additional references to IdentityManager.instance.enabled = false as documented previously in this discussion. If I understand correctly those modifications should no longer be required if it's picking up the proxy info correctly. Is that right? Secondly presumably this will be corrected in a future release of the compiled viewer?Thanks for all your helpBest RegardsSimon
Heather - here are the files. One other thing, which you may have guessed anyway, all access to our server is via SSL
Heather,Thanks for your response. We're already using the updated proxy.ashx page and been using it without issue with Flex Viewer 2.5. As you suggested I created a basic sample app and this accessed the secure service via the proxy credentials without issue. In answer to the detailed questions in your first post1/ Yes2/ Yes3/ Yes - see previous post for setup of proxy.config4/ I wish this were true!Thanks a lot
<esri:ArcGISDynamicMapServiceLayer url="https://ServerName/ArcGIS/rest/services/Secure/USASecured/MapServer" proxyURL="proxy.ashx" />
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.