# API token only not working

**URL:** https://community.dreamfactory.com/t/api-token-only-not-working/4764
**Category:** Authentication & Security
**Created:** [January 13, 2019, 3:03pm UTC](https://community.dreamfactory.com/t/api-token-only-not-working/4764 "2019-01-13T15:03:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Peterke](https://avatars.discourse-cdn.com/v4/letter/p/d9b06d/32.png) [@Peterke](https://community.dreamfactory.com/u/Peterke)
#### Post date: [January 13, 2019, 3:03pm UTC](https://community.dreamfactory.com/t/api-token-only-not-working/4764/1 "2019-01-13T15:03:59Z")

</div>

I’m a newbie with DreamFactory and I’m using a docker setup from bitami.

I want to use an API key only authentication but what ever config I’m trying i’m getting a 401 error, “Unauthorized. User is not authenticated.”

I’m clearly missing something in my config but i can’t seem to find it. Tried varias option from the community.

My config is a docker setup on windows 10 with a mongodb on my windows 10 machine. I can retrieve records via the API docs option. I’ve created a app with a default rule. A default rule with access to the service and configured cors with access to the services/app.

Is there something i have to lookin to to get this working.

Tnx.  
Peter.

---

<div class="post-metadata">

### Author: ![Peterke](https://avatars.discourse-cdn.com/v4/letter/p/d9b06d/32.png) [@Peterke](https://community.dreamfactory.com/u/Peterke)
#### Post date: [January 17, 2019, 8:08am UTC](https://community.dreamfactory.com/t/api-token-only-not-working/4764/2 "2019-01-17T08:08:34Z")

</div>

I know what the problem is…

If I connect to the configuration remote the request is working.

Seems like making the request from a local machine needs to authenticated.

Peter.
