If you want to do it with Rails, check out
http://railscasts.com/episodes/82-http-basic-authentication

You can set your RAILS_ENV to staging/testing using heroku config:add apply
the before_filter conditionally.

Hope this helps!
David

On Tue, Dec 8, 2009 at 2:37 PM, Nick Quaranto <[email protected]> wrote:

> Rack has this baked in, the Sinatra docs have a good example of using it:
>
> http://www.sinatrarb.com/faq.html#auth
>
>
> On Mon, Dec 7, 2009 at 11:35 AM, Bradley <[email protected]>wrote:
>
>> Is it possible to password protect a site, through something like http
>> auth?  I want to set up testing and staging sites, but I don't want
>> these to be public and I don't want to have these restrictions in the
>> code of my app.
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>> "Heroku" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<heroku%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/heroku?hl=en.
>>
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Heroku" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<heroku%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/heroku?hl=en.
>

--

You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.


Reply via email to