# Docker - Vault Callback

**URL:** <https://discuss.hashicorp.com/t/docker-vault-callback/47481>\
**Category:** Vault\
**Created:** [November 30, 2022, 10:21pm UTC](https://discuss.hashicorp.com/t/docker-vault-callback/47481 "2022-11-30T22:21:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lfleming](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/lfleming/32/32328_2.png) [@lfleming](https://discuss.hashicorp.com/u/lfleming)\
**Post date:** [November 30, 2022, 10:21pm UTC](https://discuss.hashicorp.com/t/docker-vault-callback/47481/1 "2022-11-30T22:21:18Z")

</div>

Hello,

I am using the Vault CLI on MacOS to authenticate with our Vault instance using OIDC. This works perfectly fine while doing so from the O/S. I have started to test the same method of authentication from a docker container and can get to the OIDC page fine. My problem now is in that it posts a callback to [http://localhost:8250/{…}](http://localhost:8250/%7B%E2%80%A6%7D) which cannot be resolved and I was wondering if there is anything I can do in order to get the callback to reach the listener in the container?

Les

---

<div class="post-metadata">

**Author:** ![maxb](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/maxb/32/26655_2.png) [@maxb](https://discuss.hashicorp.com/u/maxb)\
**Post date:** [December 1, 2022, 7:49am UTC](https://discuss.hashicorp.com/t/docker-vault-callback/47481/2 "2022-12-01T07:49:00Z")

</div>

The OIDC auth method is only suitable for use where the Vault CLI and the web browser being used for authentication are located on the same machine.

Other auth methods must be used when this isn’t the case.

---

<div class="post-metadata">

**Author:** ![lfleming](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/lfleming/32/32328_2.png) [@lfleming](https://discuss.hashicorp.com/u/lfleming)\
**Post date:** [December 1, 2022, 3:01pm UTC](https://discuss.hashicorp.com/t/docker-vault-callback/47481/3 "2022-12-01T15:01:25Z")

</div>

Thank you @maxb for confirming.
