<?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>thread Re: Integration question (for developers): Custom parameters in redirect_uri? in Archived Discussions (Read Only)</title>
    <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Integration-question-for-developers-Custom-parameters-in/m-p/152063#M93859</link>
    <description>&lt;P&gt;Hey &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/246383"&gt;@SqDeveloper&lt;/a&gt;! Welcome to the Community.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I reached out to the API team with this and they replied with the following:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;After they authorize &lt;STRONG&gt;(oauth2/authorize)&lt;/STRONG&gt; they will pass the code they receive to &lt;STRONG&gt;ObtainToken&lt;/STRONG&gt;. The response from &lt;STRONG&gt;ObtainToken&lt;/STRONG&gt; will include things such as a &lt;STRONG&gt;merchant_id&lt;/STRONG&gt; that would help them identify who it was that just authed (&lt;A href="https://slack-redir.net/link?url=https%3A%2F%2Fdeveloper.squareup.com%2Freference%2Fsquare%2Foauth-api%2Fobtain-token" target="_blank"&gt;https://developer.squareup.com/reference/square/oauth-api/obtain-token&lt;/A&gt;). Also once they auth successfully, they can of course use the access token to call the APIs such as &lt;STRONG&gt;ListLocations &lt;/STRONG&gt;which will return things like the business name: &lt;A href="https://slack-redir.net/link?url=https%3A%2F%2Fdeveloper.squareup.com%2Freference%2Fsquare%2Flocations-api%2Flist-locations" target="_blank"&gt;https://developer.squareup.com/reference/square/locations-api/list-locations&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Feb 2020 16:54:04 GMT</pubDate>
    <dc:creator>ashc</dc:creator>
    <dc:date>2020-02-14T16:54:04Z</dc:date>
    <item>
      <title>Integration question (for developers): Custom parameters in redirect_uri?</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Integration-question-for-developers-Custom-parameters-in/m-p/151802#M93858</link>
      <description>&lt;P&gt;With the globally set redirect url in the dashboard, how can I detect on my server, which user it is who has authorised my app to access Square on their behalf, after directing them to the&amp;nbsp;oauth2/authorize endpoint?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With other integrations I've done, it's possible to specify a redirect url on a case-by-case basis, in which I include custom parameters in the query string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks in advance for any advice &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 12:13:10 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Integration-question-for-developers-Custom-parameters-in/m-p/151802#M93858</guid>
      <dc:creator>SqDeveloper</dc:creator>
      <dc:date>2020-02-13T12:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Integration question (for developers): Custom parameters in redirect_uri?</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Integration-question-for-developers-Custom-parameters-in/m-p/152063#M93859</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/246383"&gt;@SqDeveloper&lt;/a&gt;! Welcome to the Community.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I reached out to the API team with this and they replied with the following:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;After they authorize &lt;STRONG&gt;(oauth2/authorize)&lt;/STRONG&gt; they will pass the code they receive to &lt;STRONG&gt;ObtainToken&lt;/STRONG&gt;. The response from &lt;STRONG&gt;ObtainToken&lt;/STRONG&gt; will include things such as a &lt;STRONG&gt;merchant_id&lt;/STRONG&gt; that would help them identify who it was that just authed (&lt;A href="https://slack-redir.net/link?url=https%3A%2F%2Fdeveloper.squareup.com%2Freference%2Fsquare%2Foauth-api%2Fobtain-token" target="_blank"&gt;https://developer.squareup.com/reference/square/oauth-api/obtain-token&lt;/A&gt;). Also once they auth successfully, they can of course use the access token to call the APIs such as &lt;STRONG&gt;ListLocations &lt;/STRONG&gt;which will return things like the business name: &lt;A href="https://slack-redir.net/link?url=https%3A%2F%2Fdeveloper.squareup.com%2Freference%2Fsquare%2Flocations-api%2Flist-locations" target="_blank"&gt;https://developer.squareup.com/reference/square/locations-api/list-locations&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 16:54:04 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Integration-question-for-developers-Custom-parameters-in/m-p/152063#M93859</guid>
      <dc:creator>ashc</dc:creator>
      <dc:date>2020-02-14T16:54:04Z</dc:date>
    </item>
  </channel>
</rss>

