Missing parameter: \”code\” is required oAuth 2.0 - could not get this working

Describe the problem/error/question

As described in another post ( Missing parameter: \"code\" is required oAuth 2.0 ) I am having trouble connecting Moloni API service via OAuth2.

The reason for this is quite simple - the authorization token is only provided by Moloni if the request is made by a URL formatted like such:

https://api.moloni.pt/v1/grant/?grant_type=authorization_code&client_id=*[your_developer_id]* &redirect_uri=[your_callback_url] &client_secret=[your_client_secret_code] &code=[your_authorization_code]

I have managed to successfully add other services (namely Zoho Mail) using a custom Oauth2 without any problem but cannot add this one to n8n. However, if I execute the process manually, I can get the authorization code as intended.

Can you please advise?

Information on your n8n setup

  • n8n version: 1.71.3
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): Own
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Npm
  • Operating system: Debian

hello

Sorry for the late response here. Feels like a limitation on the request itself from the oauth configuration from our UI.

Is there a way you can connect to another service in the meantime?

Hey Gualter,

Thank you for your reply. Unfortunately I have no alternative means of using this service. Is there any solution or temporary workaround you can recommend?

Not at the moment, you can open up an issue for our nodes team to take a look here: Issues · n8n-io/n8n · GitHub so that the development team can take a look-

Will do just that. Thanks for the help Gualter :slight_smile:

1 Like