<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Passing authentication token to flexviewer in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/passing-authentication-token-to-flexviewer/m-p/331368#M9605</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am authenticating a user via a web app, and wanting to pass an authentication token to a Flex Viewer that was created using the "flex builder?". I am not at all familiar with flex, but have managed to build java-script viewers embedded in web applications in the past. However, in this case, someone has built a flex viewer that I need to link to. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My web app gets a token from arcgis, and can access the underlying map services directly, but how do I link to the flex viewer without it having to prompt the user for the map service credentials again? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way of passing the token as a url parameter, or do I have to write custom flex code to communicate with my web app?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Oct 2013 17:53:03 GMT</pubDate>
    <dc:creator>TrevorMasters</dc:creator>
    <dc:date>2013-10-10T17:53:03Z</dc:date>
    <item>
      <title>Passing authentication token to flexviewer</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/passing-authentication-token-to-flexviewer/m-p/331368#M9605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am authenticating a user via a web app, and wanting to pass an authentication token to a Flex Viewer that was created using the "flex builder?". I am not at all familiar with flex, but have managed to build java-script viewers embedded in web applications in the past. However, in this case, someone has built a flex viewer that I need to link to. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My web app gets a token from arcgis, and can access the underlying map services directly, but how do I link to the flex viewer without it having to prompt the user for the map service credentials again? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way of passing the token as a url parameter, or do I have to write custom flex code to communicate with my web app?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 17:53:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/passing-authentication-token-to-flexviewer/m-p/331368#M9605</guid>
      <dc:creator>TrevorMasters</dc:creator>
      <dc:date>2013-10-10T17:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Passing authentication token to flexviewer</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/passing-authentication-token-to-flexviewer/m-p/331369#M9606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Answering my own question... my initial approach was wrong. There is no way of passing the token as a query parameter to the Flex Viewer app. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The solution was to have my application proxy requests from the Flex Viewer application - I just copied the proxy.config and proxy.ashx files to the root of my app. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The user first authenticates via the web app (forms authentication), and then a link to the Flex Viewer is loaded. The map service requests are sent from the Flex Viewer to my web application (had to configure the Flex Viewer and widgets to use a proxy). The web app then checks that the user is authenticated, before dynamically requesting a token from ArcGIS to accompany the original map service request.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 04:29:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/passing-authentication-token-to-flexviewer/m-p/331369#M9606</guid>
      <dc:creator>TrevorMasters</dc:creator>
      <dc:date>2013-10-14T04:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Passing authentication token to flexviewer</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/passing-authentication-token-to-flexviewer/m-p/331370#M9607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Answering my own question... my initial approach was wrong. There is no way of passing the token as a query parameter to the Flex Viewer app. &lt;BR /&gt;&lt;BR /&gt;The solution was to have my application proxy requests from the Flex Viewer application - I just copied the proxy.config and proxy.ashx files to the root of my app. &lt;BR /&gt;&lt;BR /&gt;The user first authenticates via the web app (forms authentication), and then a link to the Flex Viewer is loaded. The map service requests are sent from the Flex Viewer to my web application (had to configure the Flex Viewer and widgets to use a proxy). The web app then checks that the user is authenticated, before dynamically requesting a token from ArcGIS to accompany the original map service request.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi tr3v,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the same isssue as yours. Do you mind to elaborate more (or perhaps, a simple tutorial) to this issue? Same stuff, external login module that will also authenticating flex viewer authentication.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 05:21:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/passing-authentication-token-to-flexviewer/m-p/331370#M9607</guid>
      <dc:creator>Mass_HafifiMasod</dc:creator>
      <dc:date>2014-01-30T05:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Passing authentication token to flexviewer</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/passing-authentication-token-to-flexviewer/m-p/331371#M9608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I get some time, I will try to document this in detail but the overall solution is outlined above. The key thing is using the proxy.ashx and proxy.config files supplied by ESRI, and enabling proxy usage in your Flex widgets. Then all map service requests are passed via the proxy.ashx file where you can verify user authentication, request a token, and pass on the requests to ArcGIS Server.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 15:46:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/passing-authentication-token-to-flexviewer/m-p/331371#M9608</guid>
      <dc:creator>TrevorMasters</dc:creator>
      <dc:date>2014-01-30T15:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Passing authentication token to flexviewer</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/passing-authentication-token-to-flexviewer/m-p/331372#M9609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply. Looking forward to your tutorial!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Hafifi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 06:40:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/passing-authentication-token-to-flexviewer/m-p/331372#M9609</guid>
      <dc:creator>Mass_HafifiMasod</dc:creator>
      <dc:date>2014-02-03T06:40:28Z</dc:date>
    </item>
  </channel>
</rss>

