This is a Cloud Foundry route service that authenticates people using GitHub OAuth. You can use it when you want to restrict access to your Cloud Foundry app based on GitHub organisation.
Run tests:
go test
The following environment variables are required for the route service:
HOSTNAME
: The hostname which your route service will be frontingCLIENT_ID
: The GitHub OAuth Application client IDCLIENT_SECRET
: The GitHub OAuth Application client secretGITHUB_ORG
: The GitHub organisation you want to restrict access to
The GitHub OAuth Application should be configured with a callback URL of:
<HOSTNAME>/__oauth/callback