<?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 Unknown Authentication Error while accessing NAServer in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/unknown-authentication-error-while-accessing/m-p/439498#M2089</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;BR /&gt;&lt;SPAN&gt;I am trying to access a secured NAServer for Route functionality, through iOS APIs. I provided the following information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSCredential *userCredentials = [[AGSCredential alloc] initWithUser:@"UserName" password:@"Password"];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NSURL *routeTaskUrl = [NSURL URLWithString:kRouteTaskUrl]; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;self.routeTask = [AGSRouteTask routeTaskWithURL:routeTaskUrl credential:userCredentials];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But while trying to access the server for&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[self.routeTask retrieveDefaultRouteTaskParameters];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it is giving "Unknown Authentication Error". &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The above credentials are working for the NAServer, through a web browser. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone tell me why this could be happening?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Aug 2011 10:38:01 GMT</pubDate>
    <dc:creator>RajaSS</dc:creator>
    <dc:date>2011-08-16T10:38:01Z</dc:date>
    <item>
      <title>Unknown Authentication Error while accessing NAServer</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/unknown-authentication-error-while-accessing/m-p/439498#M2089</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;BR /&gt;&lt;SPAN&gt;I am trying to access a secured NAServer for Route functionality, through iOS APIs. I provided the following information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSCredential *userCredentials = [[AGSCredential alloc] initWithUser:@"UserName" password:@"Password"];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NSURL *routeTaskUrl = [NSURL URLWithString:kRouteTaskUrl]; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;self.routeTask = [AGSRouteTask routeTaskWithURL:routeTaskUrl credential:userCredentials];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But while trying to access the server for&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[self.routeTask retrieveDefaultRouteTaskParameters];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it is giving "Unknown Authentication Error". &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The above credentials are working for the NAServer, through a web browser. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone tell me why this could be happening?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 10:38:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/unknown-authentication-error-while-accessing/m-p/439498#M2089</guid>
      <dc:creator>RajaSS</dc:creator>
      <dc:date>2011-08-16T10:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown Authentication Error while accessing NAServer</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/unknown-authentication-error-while-accessing/m-p/439499#M2090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please refer to this forum post in IOS forum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/37345-Unknown-Authentication-Error-while-accessing-NAServer"&gt;http://forums.arcgis.com/threads/37345-Unknown-Authentication-Error-while-accessing-NAServer&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 15:34:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/unknown-authentication-error-while-accessing/m-p/439499#M2090</guid>
      <dc:creator>RaviNarayanan</dc:creator>
      <dc:date>2011-08-24T15:34:34Z</dc:date>
    </item>
  </channel>
</rss>

