Rails 3, Authlogic, NGINX and HTTP basic authentication no working nicely together
I can answer my own question (after several hours of looking in completely the wrong place). A good readup on Authlogic::Session::Config
did the trick.
class UserSession < Authlogic::Session::Base allow_http_basic_auth falseend
I still didn't try Rails 3, so my answer will be more general. And I don't know basic auth module for NginX.
- If your team is connected localy, then you can create server accessible from local network only.
- If you need access via Internet, then you can hide it behind VPN.
- You can set access to site only through local ip and give ssh access to anybody who need it. It is easy to create socks proxy via ssh (in linux: ssh -D 8080 user@yourserver.com; where 8080 is port number, then set socks proxy in browser and you can lunch yoursever.com:3000).
- I think that NginX allows you to set allowed IP's and deny other - so you can use it also for access restriction.
- And also you can temporarly add to
ApplicationController
before_filter :require_login
:), so only login page will be availbe to the world.
Hope it helps!