-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
oauth2-credentials unauthorized #9151
Comments
Hey @enoksaju, Do you have the correct url set in the Google application? Can you also confirm the exact version of n8n you are using as next is a tag and changes. |
@enoksaju can you also please share the version this was earlier working on? That might help narrow down the change that might be causing this issue. |
working version 1.34.2 i try to pull docker compose to that version, but when access to credentials endpoint this not load nothing and on console show a errors |
also, important thing, after json error is showed, all page not workign and when i reload page this show login page and i need to login again |
i read about this: #9031 (comment), maybe this cause the issue |
This is likely being caused by #9057 The login screen is showing because somewhere in the auth flow a rest-api call is being made from a context that does not have the correct permission to make this api call, so the cookie is getting invalidated. Unfortunately I'm unable to reproduce this locally, or on n8n cloud, with Firefox or Chrome. |
Maybe, i think issue is with browserid and nodesAccess property, was removed on new versions |
Same problem on version 1.37.1 with Linkedin and Microsoft Outlook OAuth2 API. After hiting "Connect my account" , my session is disconnected. Same acting is for direct visiting /rest/oauth2-credential/callback. |
I think I know what the issue might be. |
Thanks @netroy for quick response and quick workaround. This also maybe can help: (Our proxy settings with apache we are adding IP Header)
|
We'll release patch release for 1.37 and 1.38 tomorrow morning (CET). |
i add the change manually on the docker files at this path: /usr/local/lib/node_modules/n8n/dist/auth/auth.service.js then i restart docker and still the issue |
i see, req.baseUrl return /rest/oauth2-credential instead of /rest/oauth2-credential/callback |
Fix released in 1.37.3 and 1.38.1. |
@danielpsf-grover I've been trying to reproduce this with no luck so far. |
Bug Description
i try to connect to with google apis, but when i confirm the callback return this json
{"status":"error", "message": "Unauthorized"}
the url is:
/rest/oauth2-credential/callback?
To Reproduce
Expected behavior
a valid update on credentials
Operating System
Ubuntu 20.04
n8n Version
next
Node.js Version
docker
Database
SQLite (default)
Execution mode
main (default)
The text was updated successfully, but these errors were encountered: