<?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: fivetran auth to hubspot... refresh_token? bad client secret? in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/fivetran-auth-to-hubspot-refresh-token-bad-client-secret/m-p/995701#M74509</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp;this is the connector configuration guide from fivetran:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://fivetran.com/docs/rest-api/connectors/config#hubspot" target="_blank"&gt;https://fivetran.com/docs/rest-api/connectors/config#hubspot&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jun 2024 16:29:14 GMT</pubDate>
    <dc:creator>DIntegration4</dc:creator>
    <dc:date>2024-06-21T16:29:14Z</dc:date>
    <item>
      <title>fivetran auth to hubspot... refresh_token?  bad client secret?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/fivetran-auth-to-hubspot-refresh-token-bad-client-secret/m-p/995334#M74490</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am automating integration of fivetran to hubspot. I would rather &lt;/SPAN&gt;&lt;SPAN&gt;not&lt;/SPAN&gt;&lt;SPAN&gt; use the fivetran connect card and manually reconfigure regularly. To authenticate hubspot to fivetran I need: client_id, client_secret, &lt;/SPAN&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;SPAN&gt; refresh_token.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;I think I found the client_id &lt;/SPAN&gt;&lt;SPAN&gt;in&lt;/SPAN&gt;&lt;SPAN&gt; an auth url. It&lt;/SPAN&gt;&lt;SPAN&gt;'s a guid. It sure would be nice if hubspot made this easier to find.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;The client secret comes &lt;/SPAN&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;SPAN&gt; a private app I created &lt;/SPAN&gt;&lt;SPAN&gt;in&lt;/SPAN&gt;&lt;SPAN&gt; Integrations.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Ok, so the refresh token... the access key &lt;/SPAN&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;SPAN&gt; the private app &lt;/SPAN&gt;&lt;SPAN&gt;is&lt;/SPAN&gt; &lt;SPAN&gt;not&lt;/SPAN&gt;&lt;SPAN&gt; it.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;I thought I might find the refresh token &lt;/SPAN&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;SPAN&gt; the python hubspot library, &lt;/SPAN&gt;&lt;SPAN&gt;with&lt;/SPAN&gt;&lt;SPAN&gt; python &lt;/SPAN&gt;&lt;SPAN&gt;3.11&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;with&lt;/SPAN&gt;&lt;SPAN&gt; that, I &lt;/SPAN&gt;&lt;SPAN&gt;pass&lt;/SPAN&gt;&lt;SPAN&gt; the access token &lt;/SPAN&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;SPAN&gt; the private app to create the client &lt;/SPAN&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;SPAN&gt; make the tokens_api request &lt;/SPAN&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;SPAN&gt; it should &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt; a refresh token &lt;/SPAN&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;SPAN&gt; some of the doc i saw.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;```&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;SPAN&gt; hubspot &lt;/SPAN&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; HubSpot&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;api_client = HubSpot(access_token=access_token)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;oauth_tokens = api_client.auth.oauth.tokens_api.create(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;grant_type=&lt;/SPAN&gt;&lt;SPAN&gt;"authorization_code"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;redirect_uri=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;A href="http://localhost" target="_blank" rel="noopener"&gt;http://localhost&lt;/A&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;client_id=client_id,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;client_secret=client_secret,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# code="code",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;```&lt;BR /&gt;&lt;BR /&gt;other than the "code", what is that?&amp;nbsp; it matches the example&amp;nbsp;&lt;A href="https://github.com/HubSpot/hubspot-api-python/tree/7544f674d66b20c293f79af7858f431c98a56277" target="_blank" rel="noopener"&gt;https://github.com/HubSpot/hubspot-api-python/tree/7544f674d66b20c293f79af7858f431c98a56277&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;but no token is returned, instead hubspot&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;errors that &lt;/SPAN&gt;&lt;SPAN&gt;"status"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"BAD_CLIENT_SECRET"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"message"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"missing or invalid client secret"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;was this supposed to be encoded &lt;/SPAN&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;SPAN&gt; something&lt;/SPAN&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;SPAN&gt; i&lt;/SPAN&gt;&lt;SPAN&gt;'ve checked the string matches a few times.&amp;nbsp; its the client secret for my private app.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;i have super admin permissions.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;is&lt;/SPAN&gt;&lt;SPAN&gt; there an easier way&lt;/SPAN&gt;&lt;SPAN&gt;?&amp;nbsp; suggestions on what i am doing wrong here? TIA!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 20 Jun 2024 23:09:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/fivetran-auth-to-hubspot-refresh-token-bad-client-secret/m-p/995334#M74490</guid>
      <dc:creator>DIntegration4</dc:creator>
      <dc:date>2024-06-20T23:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: fivetran auth to hubspot... refresh_token? bad client secret?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/fivetran-auth-to-hubspot-refresh-token-bad-client-secret/m-p/995413#M74493</link>
      <description>&lt;P&gt;Hey, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/781402"&gt;@DIntegration4&lt;/a&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Can you share the guide you are following, please? I ask because I've seen cases where some integrations or connectors require a public app using OAuth and some that have updated to allow for Private Apps. This can also help our community members to give you additional insight as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks! — Jaycee&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 07:04:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/fivetran-auth-to-hubspot-refresh-token-bad-client-secret/m-p/995413#M74493</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2024-06-21T07:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: fivetran auth to hubspot... refresh_token? bad client secret?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/fivetran-auth-to-hubspot-refresh-token-bad-client-secret/m-p/995701#M74509</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp;this is the connector configuration guide from fivetran:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://fivetran.com/docs/rest-api/connectors/config#hubspot" target="_blank"&gt;https://fivetran.com/docs/rest-api/connectors/config#hubspot&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 16:29:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/fivetran-auth-to-hubspot-refresh-token-bad-client-secret/m-p/995701#M74509</guid>
      <dc:creator>DIntegration4</dc:creator>
      <dc:date>2024-06-21T16:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: fivetran auth to hubspot... refresh_token? bad client secret?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/fivetran-auth-to-hubspot-refresh-token-bad-client-secret/m-p/995817#M74512</link>
      <description>&lt;P&gt;I recently found this feature request on fivetran support portal&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://support.fivetran.com/hc/en-us/community/posts/17472730420503-Connector-Improvement-Authorizing-HubSpot-Connector-WIth-Private-App-Access-Token" target="_blank" rel="noopener"&gt;https://support.fivetran.com/hc/en-us/community/posts/17472730420503-Connector-Improvement-Authorizing-HubSpot-Connector-WIth-Private-App-Access-Token&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;which says this if you cant read it&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Fivetran does not support the private app flow. Currently the only options to authenticate the connector through the API are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Via the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="Original URL: https://fivetran.com/docs/rest-api/getting-started/connect-card#connectcards. Click or tap if you trust this link." href="https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffivetran.com%2Fdocs%2Frest-api%2Fgetting-started%2Fconnect-card%23connectcards&amp;amp;data=05%7C01%7Ceddie.brenes%40forgeglobal.com%7C784678fb36c94422756a08dbb3b585be%7Cd488226430a441c5938fabcc8f346ba8%7C0%7C0%7C638301364445748369%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=KI%2BnAmSo7h6PAS%2B7Lzqkaph7lt4bvdlxI45M3fCfWhA%3D&amp;amp;reserved=0" target="_blank" rel="nofollow noopener noreferrer"&gt;a connect card&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Creating your own public app within Hubspot and then supplying those Oauth credentials (client_id,&amp;nbsp;client_secret&amp;nbsp;and&amp;nbsp;refresh_token) to Fivetran.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It was recommened by the Hubspot support team that we should use the private app flow for this which is:&lt;BR /&gt;&lt;A href="https://developers.hubspot.com/docs/api/private-apps#make-api-calls-with-your-app-s-access-token" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developers.hubspot.com/docs/api/private-apps#make-api-calls-with-your-app-s-access-token&lt;/A&gt;&lt;/P&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;so i guess it is a known problem.&amp;nbsp; thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp;for the public app hint!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 21:19:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/fivetran-auth-to-hubspot-refresh-token-bad-client-secret/m-p/995817#M74512</guid>
      <dc:creator>DIntegration4</dc:creator>
      <dc:date>2024-06-21T21:19:39Z</dc:date>
    </item>
  </channel>
</rss>

