# Using SSL with HTTP Basic Authentication in Rails 2.0

**URL:** <https://www.ruby-forum.com/t/using-ssl-with-http-basic-authentication-in-rails-2-0/124723>\
**Category:** Ruby\
**Created:** [January 1, 2008, 8:28pm UTC](https://www.ruby-forum.com/t/using-ssl-with-http-basic-authentication-in-rails-2-0/124723 "2008-01-01T20:28:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![roxah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/54ee81/32.png) [@roxah](https://www.ruby-forum.com/u/roxah)\
**Post date:** [January 1, 2008, 8:28pm UTC](https://www.ruby-forum.com/t/using-ssl-with-http-basic-authentication-in-rails-2-0/124723/1 "2008-01-01T20:28:34Z")

</div>

Hello all,

I’m using WEBrick to serve up my Rails 2.0 application, and it works  
just  
fine when I use HTTP Basic Authentication. However, I’m wondering if  
it’s  
possible to tell WEBrick (or Mongrel, or Lighty) to use SSL when my  
Rails  
application calls upon the HTTP Basic Authentication. Has anyone done  
this?

Thanks! – BTR

---

<div class="post-metadata">

**Author:** ![roxah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/54ee81/32.png) [@roxah](https://www.ruby-forum.com/u/roxah)\
**Post date:** [January 2, 2008, 11:57am UTC](https://www.ruby-forum.com/t/using-ssl-with-http-basic-authentication-in-rails-2-0/124723/2 "2008-01-02T11:57:09Z")

</div>

On 1 Jan 2008, at 19:27, Bryan R. wrote:

> Thanks! – BTR

It might be easier to have Rails specify SSL at the appropriate time  
so all the configuration is in one place. You’ll probably receive  
more detail on the Rails mailing list:

[http://groups.google.com/group/rubyonrails-talk](http://groups.google.com/group/rubyonrails-talk)

Sorry not to be of more help!

Regards,  
Andy S.

---

<div class="post-metadata">

**Author:** ![roxah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/54ee81/32.png) [@roxah](https://www.ruby-forum.com/u/roxah)\
**Post date:** [January 2, 2008, 12:11pm UTC](https://www.ruby-forum.com/t/using-ssl-with-http-basic-authentication-in-rails-2-0/124723/3 "2008-01-02T12:11:11Z")

</div>

Hi,

On Jan 2, 2008 12:57 AM, Bryan R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hello all,
> 
> I’m using WEBrick to serve up my Rails 2.0 application, and it works just  
> fine when I use HTTP Basic Authentication. However, I’m wondering if it’s  
> possible to tell WEBrick (or Mongrel, or Lighty) to use SSL when my Rails  
> application calls upon the HTTP Basic Authentication. Has anyone done this?

You realize that Ruby On Rails has a separate mailing list? If yes,  
please post your rails related questions there.  
By saying this, I am not drawing a hard line, but its generally a  
pretty good idea.

---

<div class="post-metadata">

**Author:** ![roxah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/54ee81/32.png) [@roxah](https://www.ruby-forum.com/u/roxah)\
**Post date:** [January 2, 2008, 4:31pm UTC](https://www.ruby-forum.com/t/using-ssl-with-http-basic-authentication-in-rails-2-0/124723/4 "2008-01-02T16:31:40Z")

</div>

Thanks Andrew for responding. My fault on not using the Rails mailing  
list. I’ll do so right now. – BTR
