# oAuth Unauthorized error - docker

**URL:** <https://community.n8n.io/t/oauth-unauthorized-error-docker/33456>\
**Category:** Questions\
**Tags:** core, oauth2\
**Created:** [November 27, 2023, 10:43am UTC](https://community.n8n.io/t/oauth-unauthorized-error-docker/33456 "2023-11-27T10:43:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RedPacketSec](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/redpacketsec/32/17523_2.png) [@RedPacketSec](https://community.n8n.io/u/RedPacketSec)\
**Post date:** [November 27, 2023, 10:43am UTC](https://community.n8n.io/t/oauth-unauthorized-error-docker/33456/1 "2023-11-27T10:43:15Z")

</div>

## Describe the problem/error/question

Any time I try an use oAuth to authenticate an account, using AI BETA docker image, I get to the flow where I get to the callback URL of my instance, then just says unauthorised.

## What is the error message (if any)?

as above

## Please share your workflow

nothing to share

## Information on your n8n setup

- **n8n version:** latest
- **Database (default: SQLite):** postgres
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):** queue/redis
- **Running n8n via (Docker, npm, n8n cloud, desktop app):** docker AI BETA image
- **Operating system:** docker

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/6/0/60bfb8cb147690c3c3643f276953ed3a2d524b58.png)

any ideas?

same issue on activated and non-activated flows.  
same on different nodes, e.g twitter, google etc

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [November 29, 2023, 2:45pm UTC](https://community.n8n.io/t/oauth-unauthorized-error-docker/33456/3 "2023-11-29T14:45:24Z")

</div>

Hi @RedPacketSec, I am sorry you are having trouble.

This doesn’t seem like a callback-specific error from looking at [https://github.com/n8n-io/n8n/blob/master/packages/cli/src/controllers/oauth/oAuth2Credential.controller.ts#L105](https://github.com/n8n-io/n8n/blob/master/packages/cli/src/controllers/oauth/oAuth2Credential.controller.ts#L105), so I am a bit lost here unfortunately. @netroy do you have any idea what might cause n8n to respond with “Unauthorized” and nothing else?

---

<div class="post-metadata">

**Author:** ![netroy](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/netroy/32/22154_2.png) [@netroy](https://community.n8n.io/u/netroy)\
**Post date:** [November 29, 2023, 4:17pm UTC](https://community.n8n.io/t/oauth-unauthorized-error-docker/33456/4 "2023-11-29T16:17:35Z")

</div>

Are you using [Firefox Multi-Account Containers](https://addons.mozilla.org/en-US/firefox/addon/multi-account-containers/) by any chance?

---

<div class="post-metadata">

**Author:** ![RedPacketSec](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/redpacketsec/32/17523_2.png) [@RedPacketSec](https://community.n8n.io/u/RedPacketSec)\
**Post date:** [November 29, 2023, 4:30pm UTC](https://community.n8n.io/t/oauth-unauthorized-error-docker/33456/5 "2023-11-29T16:30:18Z")

</div>

Nah I think when moving to queue mode i might have messed up my docker compose file. Think I might have messed the URL webhook environment variable. Will check when I get home

---

<div class="post-metadata">

**Author:** ![RedPacketSec](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/redpacketsec/32/17523_2.png) [@RedPacketSec](https://community.n8n.io/u/RedPacketSec)\
**Post date:** [November 30, 2023, 8:44am UTC](https://community.n8n.io/t/oauth-unauthorized-error-docker/33456/6 "2023-11-30T08:44:50Z")

</div>

yeah, this was it, human error.

> **my bad, sorry n8n team**.

I bloody missed a line when migrating over my config.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [December 7, 2023, 8:45am UTC](https://community.n8n.io/t/oauth-unauthorized-error-docker/33456/7 "2023-12-07T08:45:19Z")

</div>

Closed on December 7, 2023, 8:45am UTC

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