Cannot connect to FreeAgent using Make.com

Hi,

I’m using FreeAgent and building Apps for a client who we work for.

My intention is to use Make.com to create invoices from our client’s CRM (BIGIN) using Make.

I’ve signed up for a FreeAgent sandbox account completing all the setup stages as directed within this article.

I’ve now got my OAuth credentials having created a new app. In Make, I’ve added a new FreeAgent module (create contact) and tried making a connection. The Make Login dialog has then asked for my login details which I’ve then entered (using those from the sandbox account above).

This throws an error saying ‘The email and password you entered were incorrect’.

What’s going wrong and how do I overcome this?

Apologies,

When initiating authorising the app in Google OAuth playground, I don’t get an error about username and password, but I do get an error stating the redirect URI is invalid for this app.

I’m using:

OAuth flow: server-side
Endpoints: custom
Authorisation endpoint: Log in to your FreeAgent account
Token endpoint: https://api.sandbox.freeagent.com/v2/token_endpoint
Access token location: Auth header w/ bearer prefix
Client ID & Secret have been entered

Hello there,

Apologies for not getting back to you sooner.

We’ve taken a look at this, and we think it might be that you haven’t registered the redirect_uri that you’re using to compose the authorisation request. You can register the redirect_uri in the developer dashboard, as indicated in our documentation, by going to the developer dashboard > My Apps > Edit App

I hope that helps, but please let us know if you’re still experiencing issues.

Kind regards,
Katie

1 Like

Hi Katie,

I’m using Make to create my intergration. I appreciate this platform is not within your control but wonder if I’m using the wrong credentials or I’ve missed out a step somewhere I can’t see.

Anyway, if you’re aware of how that works, I’ve got one of their ‘get a contact’ modules which starts by asking you to create a connnection. This requires the OAuth ID and Secret.

I’ve got my credentials from the FreeAgent developer dashboard and by following the Make tutorial for FreeAgent have entered credentials and pressed Save.

(This is the Make - FreeAgent tutorial I’ve entered the URI as specified in the tutorial to generate my OAuth IDs and SECRET keys.)

When I come to create the connection - as shown, this then requests authorisation with the OAuth login…

This is the point where I struggle. I’ve put in my log in details (as I use for my FreeAgent developer account and cannot get beyond this page. Despite knowing (and checking/and changing) passwords multiple times I cannot get the OAuth login screen to accept my login details. It just says they’re wrong.

I have no idea what’s not working here. Your help would be appreciated.

Cheers

Al

Hi again…

So I’ve just tried in Oauth playground and I get the following error:

As per my last reply, I’m using the following URI taken from the Make.com tutorial:

https://www.integromat.com/oauth/cb/freeagent
https://www.make.com/oauth/cb/freeagent

These are registered in the app dashboard before trying to authorise it in google oauth sandbox.

You’ll need to register the google oauth sandbox redirect URI in your app to use the sandbox with it.

The other gotcha is if you use a refresh token it is only valid for use with the redirect uri that it was initially created with.

Hi.

Do you mean I need to copy something from Google OAuth Playground back to my app in the FreeAgent’s Developer Dashboard to go in the redirect URI section of the app?

If so, what parameter is it? Authorization endpoint or Token endpoint? I can’t see anything else that could be right before I need to ‘Select and Authorise’ (which is what brings up the box to login to FreeAgent - my previous post to @Katie_FA).

Can you offer any help?

Thanks.

I don’t think you’ll be able to use the Google OAuth Playground with a different callback URL although I might be wrong.

You got a link to the tutorial you’re following?

The only tutorials I’ve found are the ones provided by Make & FreeAgent:

https://www.make.com/en/help/apps/commerce/freeagent#connect-freeagent-to-make

However, I’m also trying to debug this using ChatGPT’s Make.com GPT.

It all comes down to the point of authorising the connection. Each time I get told the username or password are incorrect, however, I’ve checked and changed the login credentials to my FreeAgent sandbox account and I’ve tried it in incognito too but I still can’t get it to authorise.

Al

Chat GPT may have come through on this one…

As I’m doing this for someone else, they’ve not shared their FreeAgent account details with me so my plan has been to create a sandbox account and implement what I needed there before porting it over to their account.

But, ChatGPT has said I need to have a live FreeAgent account (plus the sandbox account if necessary) before authorisation will take place. So, my client is coming in tomorrow and I’ll have to sit them down next to me, log in using their credentials and create a new developer dashboard account and app. Then I should be able to connect to FreeAgent from Make and then I can hopefully develop the automation in Make when they’re not there.

I’ll let you know how it goes.

I’m fairly sure if you visit https://www.integromat.com/oauth/cb/freeagent after setting it up you can set up the authorisation from there.

I can’t see why you would use OAuth Playground to get it authorised!

You can definitely use the sandbox with OAuth - we do this when testing integrations