Welcome to AuthProxy
This is a simple reverse proxy for Rack. It is not meant for production systems (although it may work), as the webserver fronting your app is generally much better at this sort of thing.
Example usage
require 'auth_proxy'
require 'omniauth-github'
use Rack::Session::Cookie, :secret => 'change_me'
use OmniAuth::Builder do
provider:github, 'key', 'secret'
end
run AuthProxy.new(secret: 'change_me', {
'/doodles' => 'https://www.google.com/'
})
Would automatically proxy requests
- http://localhost/doodles => https://www.google.com/doodles
- http://localhost/doodles/static/styles.css => https://www.google.com/doodles/static/styles.css
Code Status
License
AuthProxy is released under the MIT License.