polleverywhere/datagram — pull request #2 by andyshinn (2014-05-01 23:32:10+00:00)
Title: Allow configuration of HTTP basic auth in environment

This is just a quick addition of `Rack::Auth::Basic` middleware when configuring the `ENABLE_HTTP_BASIC_AUTH` environment variable with `AUTH_USER` and `AUTH_PASSWORD` set. This helps to configure authentication when behind a SSL load balancer which doesn't support basic authentication (such as Amazon Elastic Load Balancer).