# Unauthorized: authentication required when using orbs

**URL:** <https://discuss.circleci.com/t/unauthorized-authentication-required-when-using-orbs/39020>\
**Category:** Build Environment\
**Tags:** docker, circle-yml\
**Created:** [February 3, 2021, 6:21pm UTC](https://discuss.circleci.com/t/unauthorized-authentication-required-when-using-orbs/39020 "2021-02-03T18:21:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![skris](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/skris/32/26617_2.png) [@skris](https://discuss.circleci.com/u/skris)\
**Post date:** [February 3, 2021, 6:21pm UTC](https://discuss.circleci.com/t/unauthorized-authentication-required-when-using-orbs/39020/1 "2021-02-03T18:21:03Z")

</div>

I’m getting **unauthorized** error during **spinning up environment** step.  
Looks like the dockerhub limits are applying for me. How do I implement auth for circleci/orbs to pull from dockerhub? I couldn’t find documentation for orbs. It’ll be really helpful if someone takes a look at the **config.yml** below and help me to integrate auth. Thank you!

```
version: 2.1        
orbs:
  node: circleci/node@4.0.0
jobs:
  build:
    executor:
      name: node/default
    steps:
      - checkout
      - restore_cache:
          key: yarn-cache-v1-{{ checksum "yarn.lock" }}
      - run: yarn
      - save_cache:
          key: yarn-cache-v1-{{ checksum "yarn.lock" }}
          paths:
            - ./node_modules
      - run: yarn build

```

Complete error log:

> Build-agent version 1.0.52883-8215731d (2021-02-03T07:32:26+0000)  
> System information:  
> Server Version: 19.03.13  
> Storage Driver: overlay2  
> Backing Filesystem: xfs  
> Cgroup Driver: cgroupfs  
> Kernel Version: 4.15.0-1092-aws  
> Operating System: Ubuntu 18.04.5 LTS  
> OSType: linux  
> Architecture: x86\_64  
> Starting container cimg/node:13.11  
> Warning: No authentication provided, using CircleCI credentials for pulls from Docker Hub.  
> image cache not found on this host, downloading cimg/node:13.11  
> 13.11: Pulling from cimg/node  
> e2b273f4: Pulling fs layer  
> a2304fa1: Pulling fs layer  
> 3bce3af0: Pulling fs layer  
> 3be908de: Pulling fs layer  
> c4a2b2f0: Pulling fs layer  
> fe4e1e23: Pulling fs layer  
> 257901c7: Pulling fs layer  
> b1c6061f: Pulling fs layer  
> 1fe187f0: Pulling fs layer  
> 1f88acd3: Pulling fs layer  
> ef1ffed6: Pulling fs layer  
> 257901c7: Downloading plete ] 530.3kB/118.3MB  
> unauthorized: authentication required

---

<div class="post-metadata">

**Author:** ![skris](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/skris/32/26617_2.png) [@skris](https://discuss.circleci.com/u/skris)\
**Post date:** [February 3, 2021, 6:40pm UTC](https://discuss.circleci.com/t/unauthorized-authentication-required-when-using-orbs/39020/2 "2021-02-03T18:40:48Z")

</div>

I switched from orbs to docker image. It’s solved now, thank you!

```
jobs:
  build:
    #executor:
    # name: node/default
    docker:
      - image: circleci/node:latest
        auth:
          username: $DOCKERHUB_USERNAME
          password: $DOCKERHUB_PASSWORD
```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [February 13, 2021, 6:41pm UTC](https://discuss.circleci.com/t/unauthorized-authentication-required-when-using-orbs/39020/3 "2021-02-13T18:41:15Z")

</div>

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