URGENT If you update and are using Thrive API integration

If you update to 2.1.1 and are using the Thrive API integration from Thrive Leads or Thrive Content Builder, AND you are using oAuth1, your connection will break. I have reported it to Thrive via their support forums.



What you can do

Delete your oauth 1 connection, and create one for oauth 2. That is all you can do until Thrive can modify the API integration.

If you update to 2.1.1 and are using the Thrive API integration from Thrive Leads or Thrive Content Builder, AND you are using oAuth1, your connection will break. I have reported it to Thrive via their support forums.

What you can do
Delete your oauth 1 connection, and create one for oauth 2. That is all you can do until Thrive can modify the API integration.

Hi,
I discovered this as well. I would like to use oAuth2, but I can’t figure out what exactly belongs in the redirect uri box when I try to set up the oAuth2 at Mautic to get the keys.

I’m sure it sounds stupid, but what exactly goes in that box?

Thanks for the message, btw. Thought I was going crazy.

You can enter anything there. It’s not used!!

I think it is used … I get this error message

Click Here

Any ideas what to put in the redirect uri box?

I worked it out

You just put the url where the capture form is located :slight_smile:

@andersonid, this information may be wrong since I’m still in the setup phase and haven’t yet tested. BUT… for what it’s worth, I simply have the base URLs for my site (www and non-www versions) listed in the Redirect URI field.

Name: Thrive Leads
Redirect URI: https://www.example.com,https://example.com

When I click to save that information the OAuth2 information is generated. When I plug that into Thrive I have:

API URL: https://mautic.example.com
Public & Secret Key information pasted from Mautic
Authentication Type is OAuth2 (obviously)

I click the CONNECT button and it links up without issue.

As mentioned, I haven’t yet tested that to confirm that it works so YMMV.

Both Oauth1 and Oauth2 don’t work for me. I have a support request in at Thrive, and they say they’re working on it. They also said part of the problem is on the Mautic side.

Guess I’m gonna have to use HTML after all

Well Oauth2 works flawlessly, that I can guarantee!

[quote=15212:@pendeen560]I worked it out

You just put the url where the capture form is located :)[/quote]

I tryed that, but can’t get working… can you give me a way to figure out??

Thanks Adam for letting us know about this. I was trying to connect Mautic to my blog using oAuth1 but the connection always failed. Setting up as oAuth2 worked.

Any news from Thrive on this matter? Please keep us posted. I’m also subscribed to your post on Thrive’s support forum.

I do hope they fix this soon. Having to reauthenticate the connection after a while is highly impractical. Itś very easy to forget and loose subscribers on the process.

I think that they are not going to be able to fix oAuth1. So oAuth 2 is the only way to get it to work.

Its not a problem though, in Mautic you can set the expiration ver high. So I set mine to 999 days, witch is just under 3 years. That should be long enough.

Thanks for your quick reply, Adam. Funny, that’s exactly the number of days I used :stuck_out_tongue:

See you around. Btw, I’m subscribed to your YouTube channel. Great Mautic tutorials.

I have followed the exact steps below, why am I always getting a “page not found” error when trying to connect?

[quote=15723:@alanp]@andersonid, this information may be wrong since I’m still in the setup phase and haven’t yet tested. BUT… for what it’s worth, I simply have the base URLs for my site (www and non-www versions) listed in the Redirect URI field.

Name: Thrive Leads
Redirect URI: https://www.example.com,https://example.com

When I click to save that information the OAuth2 information is generated. When I plug that into Thrive I have:

API URL: https://mautic.example.com
Public & Secret Key information pasted from Mautic
Authentication Type is OAuth2 (obviously)

I click the CONNECT button and it links up without issue.

As mentioned, I haven’t yet tested that to confirm that it works so YMMV.[/quote]

still can’t intergrate with thrive leads,
any recent ideas on how to go about it

thanks

Can’t integrate how? What is the error message?

[quote=17989:@casper]still can’t intergrate with thrive leads,
any recent ideas on how to go about it

thanks[/quote]

In Mautic (BV2.4.0) I have set API to
API Enabled YES
Enable HTTP Basic AUTH – YES
Acces token in Lifetime 60 minutes
Refresh token lifetime 14days

Api Credentials OATH2:
Name: ThriveLeads
Redirect URL: https://www.xxxx.nu,https://xxxx.nu

That gives me the API Keys.

I use those credentials in Thrive Leads:
with the base url of Mautic as API url.
then off course fill in public and secret key, with OATH2

I get an error saying: 404 I’M SORRY COULDN’T FIND THE PAGE YOU WERE LOOKING FOR
(it’s on Mautic side)

only error message:
[2017-01-04 21:47:51] mautic.ERROR: Deprecation: SymfonyComponentDependencyInjectionDefinition::setFactoryService(doctrine) is deprecated since version 2.6 and will be removed in 3.0. Use Definition::setFactory() instead. - in file /var/www/xxxxxx/vendor/symfony/dependency-injection/Definition.php - at line 204 [] []

Please help.

@MxyzptlkFishStix
I don’t see where to get the error log from the wordpress site

I turned off Enable Basic HTTP.
Deleted API’s and made a new one.

Now I get the Mautic would like to connect site.
But when I click I get a HTTP 500 Error.
This is in Mautic Log:
[2017-01-04 23:26:08] mautic.CRITICAL: Uncaught PHP Exception OAuth2OAuth2ServerException: “invalid_request” at /var/www/xxxxxx/vendor/friendsofsymfony/oauth2-php/lib/OAuth2.php line 1113 {“exception”:"[object] (OAuth2\OAuth2ServerException(code: 0): invalid_request at /var/www/xxxxxxxx/vendor/friendsofsymfony/oauth2-php/lib/OAuth2.php:1113)"} [

Also this url:
https://xxxxx/oauth/v2/authorize?client_id=2_2tc7a2tdmigw08scgc0gcck8gsokcccossg8sg8ow0wc8coso0&redirect_uri=https%3A%2F%2FWEBSITE.nu%2Fwp-admin%2Fadmin.php%3Fpage%3Dtve_dash_api_connect%26api%3Dmautic&state=fb758e65314211eda5d20c9c0e94f559&scope=&response_type=code

The following happened:
With help of my website hosting provider we added the following code to .htaccess

php_flag display_errors on

This provided the 500-error code which I then gave back to them.
In my case it gave a Fatal error with “‘cURL error 35: SSL connect error’ in ”

My hosting provider could tell there was a conflict in curl-versions between both servers. They updated their curl versions.

This has helped! because I now have a working OATH1 api connection in ThriveLeads with Mautic.

What version of curl should be installed on the server? Mine is running 7.19.7

I also read that TL isn’t going to use basic auth? What if I don’t have my mautic installation https enabled?