Skip to content

refinery29/github-oauth-nginx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Github Nginx OAuth

This is a simple set of lua scripts to enable basic OAuth against GitHub, allowing access to users in a specific organization and not on a blacklist.

Development

Create a new GitHub OAuth 2 application at GitHub, then, with the client id and client secret, run CLIENT_ID=<your client id> CLIENT_SECRET=<your client secret> vagrant up. This will set up a vagrant instance exposing Nginx configured to Authenticate against your app at 192.168.29.42.

The example nginx configuration requires either nginx-extras from ubuntu xenial (or maybe openresty), but will work with default nginx-extras from ubuntu trusty if the init_by_lua_block and content_by_lua_block are replaced with Nginx variables and a regular webpage.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%