<?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 Re: How do I determine if a specified service is secured or not. in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-determine-if-a-specified-service-is/m-p/141077#M5527</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi ,&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; I was using 10.1 server, expect the same for 10.2. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the suggestions, however I was attempting this with a Windows Mobile Application, and not using the Windows WPF framework, so that code wouldn't work here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This has to be available from the client side so that we don't force our users to log in to a service unless it is secured. Thus using the Admin tools is not an option.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A lot of strange errors found poking around the services with different urls, however settled on trying to hit the service using the WebRequest.GetResponse() , and using the ResponseUri property to check for a redirect to a login service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks...glenn&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Apr 2014 14:25:54 GMT</pubDate>
    <dc:creator>glennmeister</dc:creator>
    <dc:date>2014-04-15T14:25:54Z</dc:date>
    <item>
      <title>How do I determine if a specified service is secured or not.</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-determine-if-a-specified-service-is/m-p/141075#M5525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How can programmatically determine if a specified service has been secured or not. Ideally the application should check to see if the service is secure or not before trying to get a token.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As Admin I can secure a single service, so expect some way to test that without having to trying hitting the service and if I get an error try adding a token.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks.glenn&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 20:21:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-determine-if-a-specified-service-is/m-p/141075#M5525</guid>
      <dc:creator>glennmeister</dc:creator>
      <dc:date>2014-04-09T20:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I determine if a specified service is secured or not.</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-determine-if-a-specified-service-is/m-p/141076#M5526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Which version of ArcGIS for Server and which API are you using?&amp;nbsp; If you're not using an API, are you possibly creating an SOE?&amp;nbsp; On the other hand, this &lt;/SPAN&gt;&lt;A href="http://gis.stackexchange.com/questions/19353/how-to-tell-if-an-arcgis-service-is-secure"&gt;thread&lt;/A&gt;&lt;SPAN&gt; indicates the following information below: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To check if the service (10.1 or higher) is secured from the GIS Tier, you can use the ArcGIS for Server Admin API:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://yourserver:6080/arcgis/admin/services/yourservice.MapServer/permissions"&gt;http://yourserver:6080/arcgis/admin/services/yourservice.MapServer/permissions&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the REST end point returned "esriEveryone", it means it is public.&amp;nbsp; Otherwise, it will return the permitted Roles or Group who can access the service.&amp;nbsp; What you're really checking for here is whether or not the service requires a GIS token or does not require a GIS token.&amp;nbsp; Using the REST Admin API in this manner and incorporating this logic into an application or SOE would likely require some sort of custom Python scripting.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To check if it is secured from the Web Tier, you would somehow have to check and see if HTTP protocol (SSL) or port 443 is being used.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/97651-How-to-check-if-a-layer-requires-a-token-to-initialize-or-not"&gt;thread&lt;/A&gt;&lt;SPAN&gt; also have some relevant information.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this information is helpful to you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 23:05:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-determine-if-a-specified-service-is/m-p/141076#M5526</guid>
      <dc:creator>WilliamCraft</dc:creator>
      <dc:date>2014-04-09T23:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I determine if a specified service is secured or not.</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-determine-if-a-specified-service-is/m-p/141077#M5527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi ,&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; I was using 10.1 server, expect the same for 10.2. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the suggestions, however I was attempting this with a Windows Mobile Application, and not using the Windows WPF framework, so that code wouldn't work here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This has to be available from the client side so that we don't force our users to log in to a service unless it is secured. Thus using the Admin tools is not an option.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A lot of strange errors found poking around the services with different urls, however settled on trying to hit the service using the WebRequest.GetResponse() , and using the ResponseUri property to check for a redirect to a login service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks...glenn&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 14:25:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-do-i-determine-if-a-specified-service-is/m-p/141077#M5527</guid>
      <dc:creator>glennmeister</dc:creator>
      <dc:date>2014-04-15T14:25:54Z</dc:date>
    </item>
  </channel>
</rss>

