# Multiple auth methods

**URL:** <https://forums.docker.com/t/multiple-auth-methods/85857>\
**Category:** Docker Engine\
**Created:** [December 15, 2019, 6:14am UTC](https://forums.docker.com/t/multiple-auth-methods/85857 "2019-12-15T06:14:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmonti](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/mmonti/32/25912_2.png) [@mmonti](https://forums.docker.com/u/mmonti)\
**Post date:** [December 15, 2019, 6:14am UTC](https://forums.docker.com/t/multiple-auth-methods/85857/1 "2019-12-15T06:14:14Z")

</div>

I am hosting a docker registry and I need to use it with 2 different “clients”.

One of those clients is gitlab where I use token auth mechanism. On the other side I have a different client which only support basic auth, so if I configure the registry to allow basic auth I cannot use gitlab and vice versa.

Is there a best/common practice for this type of scenarios? Is it even possible to have 2 auth mechanisms for the same registry?

Thanks!
