<?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 Check if a user is authorized to a specific secured map service in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/check-if-a-user-is-authorized-to-a-specific/m-p/531373#M15070</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm developing a widget that will make different queries to a specific secured map service. We have set up our ArcGIS server 10.1 to use Integrated Windows Authentication. I don't want the users that are unauthorized to see this service to think they can use the widget but then receive an error message (that they probably don't understand). So I want the widget to check if the user are authorized to see the map service and if not just display a message in the widget explaining that this widget only works for users that are authorized.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I've come up with so far is to make a simple query to the map service, and if the query doesn't work and the faultString that is returned is equal to "Unable to get token service url from (&lt;/SPAN&gt;&lt;A href="http://servername/arcgis/rest/info"&gt;http://servername/arcgis/rest/info&lt;/A&gt;&lt;SPAN&gt;) Version 10.01+ required." Then the user is not authorized otherwise the user is authorized. (Because that's the faultString that is returned when an unauthorized user try to query the service, doesn't even get a faultCode or something like that).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This actually works but I'm thinking there should be a better way to do this. For example, I guess this faultString I'm using could be caused by something else.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully I've missed something useful in the API...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jul 2013 13:25:21 GMT</pubDate>
    <dc:creator>MattiasEkström</dc:creator>
    <dc:date>2013-07-22T13:25:21Z</dc:date>
    <item>
      <title>Check if a user is authorized to a specific secured map service</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/check-if-a-user-is-authorized-to-a-specific/m-p/531373#M15070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm developing a widget that will make different queries to a specific secured map service. We have set up our ArcGIS server 10.1 to use Integrated Windows Authentication. I don't want the users that are unauthorized to see this service to think they can use the widget but then receive an error message (that they probably don't understand). So I want the widget to check if the user are authorized to see the map service and if not just display a message in the widget explaining that this widget only works for users that are authorized.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I've come up with so far is to make a simple query to the map service, and if the query doesn't work and the faultString that is returned is equal to "Unable to get token service url from (&lt;/SPAN&gt;&lt;A href="http://servername/arcgis/rest/info"&gt;http://servername/arcgis/rest/info&lt;/A&gt;&lt;SPAN&gt;) Version 10.01+ required." Then the user is not authorized otherwise the user is authorized. (Because that's the faultString that is returned when an unauthorized user try to query the service, doesn't even get a faultCode or something like that).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This actually works but I'm thinking there should be a better way to do this. For example, I guess this faultString I'm using could be caused by something else.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully I've missed something useful in the API...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 13:25:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/check-if-a-user-is-authorized-to-a-specific/m-p/531373#M15070</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2013-07-22T13:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Check if a user is authorized to a specific secured map service</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/check-if-a-user-is-authorized-to-a-specific/m-p/531374#M15071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mattias,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;did you find the solution yet? I didn't. I tried to use the getCredetials-method of the IdentityManagerBase, but it does not support the necessary information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I couldn't be so complicated...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Stephan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 14:31:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/check-if-a-user-is-authorized-to-a-specific/m-p/531374#M15071</guid>
      <dc:creator>StephanMendler</dc:creator>
      <dc:date>2013-07-29T14:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Check if a user is authorized to a specific secured map service</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/check-if-a-user-is-authorized-to-a-specific/m-p/531375#M15072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I still haven't found a better solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be really nice if the API could provide some functionality to just ask a service if the current user is authorized to see it or not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But one thought that crossed my mind is that when you look at the services in the service directory, you don't see any information about service that your not authorized to see, they're just not there. So maybe you can't check if your authorized when the service, to that unauthorized user, doesn't seems to exist.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 05:48:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/check-if-a-user-is-authorized-to-a-specific/m-p/531375#M15072</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2013-10-24T05:48:55Z</dc:date>
    </item>
  </channel>
</rss>

