<?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: Problems utilising app authentication in Kotlin in Kotlin Maps SDK Questions</title>
    <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/problems-utilising-app-authentication-in-kotlin/m-p/1632881#M578</link>
    <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;You should be able to use PregeneratedTokenCredential for your use case. Did you try that out or did you take your assumption that it doesn't work from some documentation? If you tried it out, could you share more details about usage and error details.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 14 Jul 2025 16:16:04 GMT</pubDate>
    <dc:creator>GuntherHeppner</dc:creator>
    <dc:date>2025-07-14T16:16:04Z</dc:date>
    <item>
      <title>Problems utilising app authentication in Kotlin</title>
      <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/problems-utilising-app-authentication-in-kotlin/m-p/1625075#M573</link>
      <description>&lt;P&gt;I've been following instructions here:&amp;nbsp;&lt;A href="https://developers.arcgis.com/documentation/security-and-authentication/app-authentication/" target="_blank"&gt;https://developers.arcgis.com/documentation/security-and-authentication/app-authentication/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have a web server which has a client ID and secret using OAuth to generate a token. This token gets downloaded to an Android client which I intend to use for ArcGIS mapping. I will handle downloading fresh tokens when need be.&lt;/P&gt;&lt;P&gt;This exact scenario is supposedly supported according to the documentation above.&lt;/P&gt;&lt;P&gt;However, once I download this token to my client, there is no suitable ArcGISCredentials I can use to store it in the ArcGISCredentialStore.&lt;/P&gt;&lt;P&gt;I assumed&amp;nbsp;PregeneratedTokenCredential would be the answer, but that requires you to use a /generateToken endpoint which is not OAuth. That endpoint uses a username and password. Therefore the token I use here is invalid.&lt;/P&gt;&lt;P&gt;The OAuthTokenCredentials either initiate a login flow, or use a client secret on the client. These are not suitable.&lt;/P&gt;&lt;P&gt;Why can't I just use the OAuth token I have downloaded to the client, which the documentation has suggested I can do?&lt;/P&gt;&lt;P&gt;Is there something I'm missing?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2025 14:45:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/kotlin-maps-sdk-questions/problems-utilising-app-authentication-in-kotlin/m-p/1625075#M573</guid>
      <dc:creator>johnms93</dc:creator>
      <dc:date>2025-06-19T14:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problems utilising app authentication in Kotlin</title>
      <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/problems-utilising-app-authentication-in-kotlin/m-p/1632881#M578</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;You should be able to use PregeneratedTokenCredential for your use case. Did you try that out or did you take your assumption that it doesn't work from some documentation? If you tried it out, could you share more details about usage and error details.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 14 Jul 2025 16:16:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/kotlin-maps-sdk-questions/problems-utilising-app-authentication-in-kotlin/m-p/1632881#M578</guid>
      <dc:creator>GuntherHeppner</dc:creator>
      <dc:date>2025-07-14T16:16:04Z</dc:date>
    </item>
  </channel>
</rss>

