<?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 Hyperlinks to secure hosted service attachment URL endpoint in popups in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hyperlinks-to-secure-hosted-service-attachment-url/m-p/300434#M27576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi- thanks for any thoughts on this one:&lt;/P&gt;&lt;P&gt;I have a custom webmap popup for a layer in which I would like to link to an endpoint of a hosted feature service.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;lt;a href='&lt;A class="link-titled" href="http://services1.arcgis.com/MyOrg/rest/services/MyService/FeatureServer/1/7/attachments/7" title="http://services1.arcgis.com/MyOrg/rest/services/MyService/FeatureServer/1/7/attachments/7"&gt;http://services1.arcgis.com/MyOrg/rest/services/MyService/FeatureServer/1/7/attachments/7&lt;/A&gt;'&amp;gt;Document&amp;lt;&lt;/P&gt;&lt;P&gt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;Since it is a&amp;nbsp;secure service, the direct hyperlink will open an ArcGIS Service REST Directory message of "Token Required". &amp;nbsp; If you go through the item description page for the service first, the attachment loads because the address has been augmented with a token. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Is there a way that I could&amp;nbsp;configure the hyperlink through a token generation&amp;nbsp;page? &amp;nbsp;I don't think the generateToken operation allows for redirection(?).&lt;/P&gt;&lt;P&gt;2) I looked at OAUTH app authentication using a clientId which CAN&amp;nbsp;redirect to the endpoint, ie:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.arcgis.com/sharing/rest/oauth2/authorize?client_id=YOUR_APPLICATIONS_CLIENT_ID&amp;amp;response_type=token&amp;amp;expiration=20160&amp;amp;redirect_uri=http://services1.arcgis.com/MyOrg/rest/services/MyService/FeatureServer/1/7/attachments/7" title="https://www.arcgis.com/sharing/rest/oauth2/authorize?client_id=YOUR_APPLICATIONS_CLIENT_ID&amp;amp;response_type=token&amp;amp;expiration=20160&amp;amp;redirect_uri=http://services1.arcgis.com/MyOrg/rest/services/MyService/FeatureServer/1/7/attachments/7"&gt;https://www.arcgis.com/sharing/rest/oauth2/authorize?client_id=YOUR_APPLICATIONS_CLIENT_ID&amp;amp;response_type=token&amp;amp;expiratio…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;However, the ACCESS token which gets passed to the underling hosted service does not authenticate and the Token Required page is returned.&lt;/P&gt;&lt;P&gt;Hope this all makes sense. &amp;nbsp;Thanks for any ideas.&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Nov 2016 16:54:51 GMT</pubDate>
    <dc:creator>SBerg_VHB</dc:creator>
    <dc:date>2016-11-29T16:54:51Z</dc:date>
    <item>
      <title>Hyperlinks to secure hosted service attachment URL endpoint in popups</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hyperlinks-to-secure-hosted-service-attachment-url/m-p/300434#M27576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi- thanks for any thoughts on this one:&lt;/P&gt;&lt;P&gt;I have a custom webmap popup for a layer in which I would like to link to an endpoint of a hosted feature service.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;lt;a href='&lt;A class="link-titled" href="http://services1.arcgis.com/MyOrg/rest/services/MyService/FeatureServer/1/7/attachments/7" title="http://services1.arcgis.com/MyOrg/rest/services/MyService/FeatureServer/1/7/attachments/7"&gt;http://services1.arcgis.com/MyOrg/rest/services/MyService/FeatureServer/1/7/attachments/7&lt;/A&gt;'&amp;gt;Document&amp;lt;&lt;/P&gt;&lt;P&gt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;Since it is a&amp;nbsp;secure service, the direct hyperlink will open an ArcGIS Service REST Directory message of "Token Required". &amp;nbsp; If you go through the item description page for the service first, the attachment loads because the address has been augmented with a token. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Is there a way that I could&amp;nbsp;configure the hyperlink through a token generation&amp;nbsp;page? &amp;nbsp;I don't think the generateToken operation allows for redirection(?).&lt;/P&gt;&lt;P&gt;2) I looked at OAUTH app authentication using a clientId which CAN&amp;nbsp;redirect to the endpoint, ie:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.arcgis.com/sharing/rest/oauth2/authorize?client_id=YOUR_APPLICATIONS_CLIENT_ID&amp;amp;response_type=token&amp;amp;expiration=20160&amp;amp;redirect_uri=http://services1.arcgis.com/MyOrg/rest/services/MyService/FeatureServer/1/7/attachments/7" title="https://www.arcgis.com/sharing/rest/oauth2/authorize?client_id=YOUR_APPLICATIONS_CLIENT_ID&amp;amp;response_type=token&amp;amp;expiration=20160&amp;amp;redirect_uri=http://services1.arcgis.com/MyOrg/rest/services/MyService/FeatureServer/1/7/attachments/7"&gt;https://www.arcgis.com/sharing/rest/oauth2/authorize?client_id=YOUR_APPLICATIONS_CLIENT_ID&amp;amp;response_type=token&amp;amp;expiratio…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;However, the ACCESS token which gets passed to the underling hosted service does not authenticate and the Token Required page is returned.&lt;/P&gt;&lt;P&gt;Hope this all makes sense. &amp;nbsp;Thanks for any ideas.&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2016 16:54:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hyperlinks-to-secure-hosted-service-attachment-url/m-p/300434#M27576</guid>
      <dc:creator>SBerg_VHB</dc:creator>
      <dc:date>2016-11-29T16:54:51Z</dc:date>
    </item>
  </channel>
</rss>

