<?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 get an &amp;quot;access_token&amp;quot; after signing in with OAuth? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/how-do-i-get-an-quot-access-token-quot-after/m-p/797120#M9712</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please provide more detail around why you need to do this&amp;nbsp;with the Survey123 app and your overall workflow. I can understand how or why this may be done with a web app, but not sure I&amp;nbsp;understand the relevant workflow with Survey123 field app?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Aug 2018 00:46:40 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2018-08-02T00:46:40Z</dc:date>
    <item>
      <title>How do I get an "access_token" after signing in with OAuth?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-do-i-get-an-quot-access-token-quot-after/m-p/797119#M9711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We need to get an "access_token" so&amp;nbsp;we can load private data after signing in using OAuth/AGOL user. How can we do that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a workflow that works for our web app, it is as follows:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;In order to get the token, we hit the endpoint at&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE style="color: #eb5a46; background-color: #f8f9f9; margin: -1px 2px; padding: 1px 3px;"&gt;{host}/sharing/rest/oauth2/token&lt;/CODE&gt;, and as parameters we send&amp;nbsp;the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE style="color: #eb5a46; background-color: #f8f9f9; margin: -1px 2px; padding: 1px 3px;"&gt;client_id&lt;/CODE&gt;, the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE style="color: #eb5a46; background-color: #f8f9f9; margin: -1px 2px; padding: 1px 3px;"&gt;code&lt;/CODE&gt;, the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE style="color: #eb5a46; background-color: #f8f9f9; margin: -1px 2px; padding: 1px 3px;"&gt;redirect_url&lt;/CODE&gt;, and the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE style="color: #eb5a46; background-color: #f8f9f9; margin: -1px 2px; padding: 1px 3px;"&gt;grant_type&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE style="color: #eb5a46; background-color: #f8f9f9; margin: -1px 2px; padding: 1px 3px;"&gt;authorization_code&lt;/CODE&gt;.&lt;/LI&gt;&lt;LI&gt;The returned object has an&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE style="color: #eb5a46; background-color: #f8f9f9; margin: -1px 2px; padding: 1px 3px;"&gt;access_token&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE style="color: #eb5a46; background-color: #f8f9f9; margin: -1px 2px; padding: 1px 3px;"&gt;refresh_token&lt;/CODE&gt;, which we retrieve from the returned object.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We see information like esri username and organization ID after we sign in, but no access_token. We also don't see a &lt;SPAN style="color: #eb5a46; background-color: #f8f9f9;"&gt;code&lt;/SPAN&gt;, so we can't request it like we do in our web app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 20:43:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-do-i-get-an-quot-access-token-quot-after/m-p/797119#M9711</guid>
      <dc:creator>MattStayner</dc:creator>
      <dc:date>2018-07-27T20:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get an "access_token" after signing in with OAuth?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-do-i-get-an-quot-access-token-quot-after/m-p/797120#M9712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please provide more detail around why you need to do this&amp;nbsp;with the Survey123 app and your overall workflow. I can understand how or why this may be done with a web app, but not sure I&amp;nbsp;understand the relevant workflow with Survey123 field app?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 00:46:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-do-i-get-an-quot-access-token-quot-after/m-p/797120#M9712</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-08-02T00:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get an "access_token" after signing in with OAuth?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-do-i-get-an-quot-access-token-quot-after/m-p/797121#M9713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found it. It is &lt;STRONG&gt;oAuthAccessTokenFromAuthCodeReques&lt;/STRONG&gt;t in the Portal.qml file. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 20:51:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-do-i-get-an-quot-access-token-quot-after/m-p/797121#M9713</guid>
      <dc:creator>MattStayner</dc:creator>
      <dc:date>2018-08-02T20:51:49Z</dc:date>
    </item>
  </channel>
</rss>

