# Basic Authentication

**URL:** <https://discuss.rubyonrails.org/t/basic-authentication/61053>\
**Category:** rubyonrails-talk\
**Created:** [September 27, 2011, 5:01am UTC](https://discuss.rubyonrails.org/t/basic-authentication/61053 "2011-09-27T05:01:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hesham](https://avatars.discourse-cdn.com/v4/letter/h/ecb155/32.png) [@Hesham](https://discuss.rubyonrails.org/u/Hesham)\
**Post date:** [September 27, 2011, 5:01am UTC](https://discuss.rubyonrails.org/t/basic-authentication/61053/1 "2011-09-27T05:01:48Z")

</div>

I'm using Sorcery with Basic Authentication setup. The Authentication works fine if I access it through the web, however, I cannot seem to get succeffull authentication through CURL:

curl -u testu:test [http://localhost:3000](http://localhost:3000)

what am I missing?

---

<div class="post-metadata">

**Author:** ![Hesham](https://avatars.discourse-cdn.com/v4/letter/h/ecb155/32.png) [@Hesham](https://discuss.rubyonrails.org/u/Hesham)\
**Post date:** [September 27, 2011, 8:14am UTC](https://discuss.rubyonrails.org/t/basic-authentication/61053/2 "2011-09-27T08:14:27Z")

</div>

Forgot to say that I get Access Denied.
