password protected site

2009-12-08 Thread Bradley
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 her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.




Re: password protected site

2009-12-08 Thread Nick Quaranto
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 bradleyrobert...@gmail.com 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 her...@googlegroups.com.
 To unsubscribe from this group, send email to
 heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@googlegroups.com
 .
 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 her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.




Re: password protected site

2009-12-08 Thread David Dollar
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 n...@quaran.to 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 bradleyrobert...@gmail.comwrote:

 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 her...@googlegroups.com.
 To unsubscribe from this group, send email to
 heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@googlegroups.com
 .
 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 her...@googlegroups.com.
 To unsubscribe from this group, send email to
 heroku+unsubscr...@googlegroups.comheroku%2bunsubscr...@googlegroups.com
 .
 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 her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.




Re: password protected site

2009-12-08 Thread Morten Bagai
Use something like http://github.com/pedro/miniauth

Best,

Morten



On Dec 7, 2009, at 8:35 AM, Bradley bradleyrobert...@gmail.com 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 her...@googlegroups.com.
 To unsubscribe from this group, send email to 
 heroku+unsubscr...@googlegroups.com 
 .
 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 her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.