Webhook google oauth2 callback not parsing url params

Describe the problem/error/question

Hello,

I use webhook and get a callback from google auth2 from consent page. Whenever user approves oauth2 on consent page, I redirect it to the webhook and would like to parse url that includes access token etc.

here is my webhook url but n8n not able to parse it because of the # sign. I suppose google puts it in the url.

How can i proceed with that?

https://xxx.app.n8n.cloud/webhook-test/auth/v1/callback#state=YOUR_STATE&access_token=xxxxxxx&token_type=Bearer&expires_in=3599&scope=email%20https://www.googleapis.com/auth/spreadsheets%20https://www.googleapis.com/auth/userinfo.email%20openid&authuser=0&hd=yyyyy&prompt=none

  • n8n version: 1.50.1
  • Database (default: SQLite): default
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): cloud
  • Operating system: ?

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

Hey @Erkan_Erkisi,

Welcome to the community :raised_hands:

What are you actually trying to do? We already have inbuilt processes for handling OAuth so I am not sure why you would need or want to do it with a webhook node :slight_smile:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.