<?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: User Token authorisation throwing exception in Android in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/user-token-authorisation-throwing-exception-in/m-p/435541#M2955</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A href="https://community.esri.com/migrated-users/217534"&gt;Hari Narayana Pochiraju&lt;/A&gt;​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am going to make the assumption that you are generating the token through ArcGIS Online and not ArcGIS Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, sans-serif; font-size: 13px;"&gt;The &lt;/SPAN&gt;&lt;CODE style="color: #007000; font-size: 13px;"&gt;referer&lt;/CODE&gt;&lt;SPAN style="color: #333333; font-family: arial, sans-serif; font-size: 13px;"&gt; string that is either the name of the application consuming the secure service or any other client identification string that is appropriate for the application. It is required that the referer string that was used to generate the token be supplied to this method.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, sans-serif; font-size: 13px;"&gt;What happens when you set this as the referrer:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #183691; font-size: 12px; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fwww.arcgis.com" rel="nofollow" target="_blank"&gt;https://www.arcgis.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jun 2016 12:26:46 GMT</pubDate>
    <dc:creator>AlexanderNohe1</dc:creator>
    <dc:date>2016-06-21T12:26:46Z</dc:date>
    <item>
      <title>User Token authorisation throwing exception in Android</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/user-token-authorisation-throwing-exception-in/m-p/435540#M2954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to this ArcGIS Map. I am developing an application where we are using a user token instead of passing username and password in User Credentials.&lt;/P&gt;&lt;P&gt;UserCredentials creds = &lt;SPAN style="color: #931a68;"&gt;new&lt;/SPAN&gt; UserCredentials();&lt;/P&gt;&lt;P&gt;creds.setUserToken(map_token, &lt;SPAN style="color: #3933ff;"&gt;referral&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am stuck at this point. What do I really have to pass in as a parameter for referral? I tried passing null and empty string as a parameter but I get an error message saying "token or referral cannot be empty string"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I passed some parameter I am getting "&lt;SPAN style="color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;"&gt;com.esri.core.io.EsriServiceException not found" exception&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 17:30:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/user-token-authorisation-throwing-exception-in/m-p/435540#M2954</guid>
      <dc:creator>Hari_NarayanaPochiraju</dc:creator>
      <dc:date>2016-06-20T17:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: User Token authorisation throwing exception in Android</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/user-token-authorisation-throwing-exception-in/m-p/435541#M2955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A href="https://community.esri.com/migrated-users/217534"&gt;Hari Narayana Pochiraju&lt;/A&gt;​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am going to make the assumption that you are generating the token through ArcGIS Online and not ArcGIS Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, sans-serif; font-size: 13px;"&gt;The &lt;/SPAN&gt;&lt;CODE style="color: #007000; font-size: 13px;"&gt;referer&lt;/CODE&gt;&lt;SPAN style="color: #333333; font-family: arial, sans-serif; font-size: 13px;"&gt; string that is either the name of the application consuming the secure service or any other client identification string that is appropriate for the application. It is required that the referer string that was used to generate the token be supplied to this method.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: arial, sans-serif; font-size: 13px;"&gt;What happens when you set this as the referrer:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #183691; font-size: 12px; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fwww.arcgis.com" rel="nofollow" target="_blank"&gt;https://www.arcgis.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 12:26:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/user-token-authorisation-throwing-exception-in/m-p/435541#M2955</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2016-06-21T12:26:46Z</dc:date>
    </item>
  </channel>
</rss>

