n8n-io / n8n

Free and source-available fair-code licensed workflow automation tool. Easily automate tasks across different services.
https://n8n.io
Other
46.47k stars 6.67k forks source link

Not possible to use Notion OAuth credentials #9917

Open agonbina opened 3 months ago

agonbina commented 3 months ago

Bug Description

When configuring the authentication for all Notion nodes, it's only possible to specify the non public integration type secret/token (implemented as notionApi credentials in n8n).

Notion OAuth based authentication is available (and possible to configure via the Credentials view in the n8n dashboard) however it is not possible to use them in a Notion node.

It seems like this is not configured in the code here.

To Reproduce

Try to setup any Notion node.

Expected behavior

Able to configure the notionOAuth2Api credentials for a Notion node.

Operating System

MacOS

n8n Version

latest docker image

Node.js Version

latest docker image

Database

PostgreSQL

Execution mode

main (default)

agonbina commented 3 months ago

Btw in the documentation it is mentioned that one can use Oauth2 authentication for notion: https://docs.n8n.io/integrations/builtin/credentials/notion/#using-oauth2

Joffcom commented 3 months ago

Hey @agonbina,

That is a very good find, it looks like for some reason we had planned to add OAuth and did all the work but never actually released it.

The internal dev ticket for this is NODE-1457.

agonbina commented 3 months ago

Hi, is there any quick workaround for me to enable this for my self hosted n8n instance?

Joffcom commented 3 months ago

Hey @agonbina,

We were actually meant to remove the option so we have been talking about what to do and we are likely going to add it instead of removing it. The quickest work around would be to use the credential with the http request node to manually call the API.