{"repo":"sorah/nginx_omniauth_adapter","free":true,"listed":false,"github":"https://github.com/sorah/nginx_omniauth_adapter","clone":"git clone https://github.com/sorah/nginx_omniauth_adapter.git","description":"Use omniauth for nginx auth_request","language":"Ruby","stars":68,"topics":["security","authentication","nginx","omniauth","rack"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"NginxOmniauthAdapter - Use omniauth for nginx auth request Use omniauth for your nginx's authentication via ngx http auth request module. NginxOmniauthAdapter provides small Rack app (built with Sinatra) for auth request . Prerequisite - nginx with ngx http auth request module Quick example http://ngx-auth-test.lo.nkmiusercontent.com:18080/ (make sure to have nginx on your PATH) Usage Steps 1. Start adapter app with proper configuration 2. enable auth request and add some endpoints on nginx - See example/nginx-site.conf for nginx configuration. Running with Rubygems Then write config.ru then deploy it. (see ./config.ru for example) Using docker - Prebuilt: https://quay.io/repository/sorah/nginx omniauth adapter - Own your risk. - They're built at circleci - Build manually: checkout this repo and run docker build . . - Much safer. - But if you can't trust upstream image quay.io/sorah/rbenv:2.2 , write your own Dockerfile. This is just a simple Rack app. Configuration environment variable is available only on included config.ru (or Docker image). - :providers : omniauth provider names. - :provider http header $NGX OMNIAUTH PROVIDER HTTP HEADER (string): Name of HTTP header to specify OmniAuth provider to be used (see below). Defaults to 'x-ngx-omniauth-provider . - :secret $NGX OMNIAUTH SESSION SECRET : Rack session secret. Should be set when not on dev mode - :host $NGX OMNIAUTH HOST : URL of adapter. This is used for redirection. Should include protocol (e.g. http://example.c","default_branch":null,"files":null,"tree":[],"storefront":"/r/sorah","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sorah/nginx_omniauth_adapter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}