<?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 ArcGIS token security and Silverlight controls in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/arcgis-token-security-and-silverlight-controls/m-p/459905#M11853</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: jmurdoch&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After generating a token for a secured ArcGIS Map Service, I'm able to programmatically retrieve the attachment list resource for a particular feature.&amp;nbsp; However, if I use this token to try to open an attachment in the browser via XAML, I am forwarded to the service login page instead.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Presumably, this is because the HTTP referrer used to generate the token is not the same referrer used to open the attachment in the browser.&amp;nbsp; I'm wondering if there are any thoughts/solutions/work-arounds for this.&amp;nbsp; I'd like to be able to do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;HyperlinkButton Content="{Binding Name}" TargetName="_blank" NavigateUri="{Binding FeatureAttachmentUri}" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (where FeatureAttachmentUri includes the token param)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jennifer&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Apr 2012 20:47:24 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2012-04-02T20:47:24Z</dc:date>
    <item>
      <title>ArcGIS token security and Silverlight controls</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/arcgis-token-security-and-silverlight-controls/m-p/459905#M11853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: jmurdoch&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After generating a token for a secured ArcGIS Map Service, I'm able to programmatically retrieve the attachment list resource for a particular feature.&amp;nbsp; However, if I use this token to try to open an attachment in the browser via XAML, I am forwarded to the service login page instead.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Presumably, this is because the HTTP referrer used to generate the token is not the same referrer used to open the attachment in the browser.&amp;nbsp; I'm wondering if there are any thoughts/solutions/work-arounds for this.&amp;nbsp; I'd like to be able to do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;HyperlinkButton Content="{Binding Name}" TargetName="_blank" NavigateUri="{Binding FeatureAttachmentUri}" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (where FeatureAttachmentUri includes the token param)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jennifer&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 20:47:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/arcgis-token-security-and-silverlight-controls/m-p/459905#M11853</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-04-02T20:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS token security and Silverlight controls</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/arcgis-token-security-and-silverlight-controls/m-p/459906#M11854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: jenniferdnery&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for reporting this. It has been posted at another thread &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/52811-AttachmentEditor-Viewing-attachments-requires-REST-API-login"&gt;http://forums.arcgis.com/threads/52811-AttachmentEditor-Viewing-attachments-requires-REST-API-login&lt;/A&gt;&lt;SPAN&gt; and has been assigned NIM079307. We are currently working on this bug. The AttachmentInfo.Uri need to include FeatureLayer.Token, which it currently does not.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 00:34:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/arcgis-token-security-and-silverlight-controls/m-p/459906#M11854</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-04-03T00:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS token security and Silverlight controls</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/arcgis-token-security-and-silverlight-controls/m-p/459907#M11855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: jmurdoch&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While it's true that the token isn't appended to the AttachmentInfo.Uri, I have worked around this by appending the token param to the URI myself.&amp;nbsp; This allows me to access and download the attachment from my application code.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BUT, this does not let me open the attachment in the browser using a Silverlight control as above.&amp;nbsp; This is the issue I'm hoping to have addressed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any assistance would be gratefully received!&amp;nbsp; Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jennifer&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 15:20:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/arcgis-token-security-and-silverlight-controls/m-p/459907#M11855</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-04-03T15:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS token security and Silverlight controls</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/arcgis-token-security-and-silverlight-controls/m-p/459908#M11856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;HyperlinkButton Content="{Binding Name}" NavigateUri="{Binding Uri}" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VerticalAlignment="Center" TargetName="_blank"&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you create AttachmentEditor.Style, the highlighted code above is missing token. The correct Uri should be appended with "&amp;lt;AttachmentInfo.Uri&amp;gt;?token=&amp;lt;FeatureLayer.Token"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:30:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/arcgis-token-security-and-silverlight-controls/m-p/459908#M11856</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-12T16:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS token security and Silverlight controls</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/arcgis-token-security-and-silverlight-controls/m-p/459909#M11857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: jmurdoch&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for the confusion.&amp;nbsp; The binding above is not to an ESRI AttachmentInfo object, but to my own business object with a Uri field that is composed of the AttachmentInfo URI appended with the token URL parameter.&amp;nbsp; When I use this exact business object's URI to request the attachment content from my business logic code, the attachment downloads successfully.&amp;nbsp; However, attempting to open the attachment in the browser using a Silverlight control fails.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I said, I believe this is the result of the HTTP referrer used to generate the token not being the same referrer used by the browser to perform the request, and I'm wondering if there is a workaround that would allow me to open the attachment in the browser, rather than building my own document viewer into my Silverlight application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jennifer&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 17:49:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/arcgis-token-security-and-silverlight-controls/m-p/459909#M11857</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-04-03T17:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS token security and Silverlight controls</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/arcgis-token-security-and-silverlight-controls/m-p/459910#M11858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just verified that appending FeatureLayer.Token to the attachment URI should be enough.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Apr 2012 04:12:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/arcgis-token-security-and-silverlight-controls/m-p/459910#M11858</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2012-04-08T04:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS token security and Silverlight controls</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/arcgis-token-security-and-silverlight-controls/m-p/459911#M11859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: ah1508&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; &lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;HyperlinkButton Content="{Binding Name}" &lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;NavigateUri="{Binding Uri}" &lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VerticalAlignment="Center" TargetName="_blank"&amp;gt;
&lt;/PRE&gt; &lt;BR /&gt; &lt;BR /&gt;When you create AttachmentEditor.Style, the highlighted code above is missing token. The correct Uri should be appended with "&amp;lt;AttachmentInfo.Uri&amp;gt;?token=&amp;lt;FeatureLayer.Token"&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you go into more detail on how this is done. I think I'm missing a piece of the puzzle. Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:28:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/arcgis-token-security-and-silverlight-controls/m-p/459911#M11859</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T20:28:13Z</dc:date>
    </item>
  </channel>
</rss>

