Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.
/ github-auth-proxy Public archive

GitHub auth proxy for Netlify CMS that can be deployed to Vercel

License

Notifications You must be signed in to change notification settings

Ohlasy/github-auth-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a simple app that makes it possible to authenticate Netlify CMS against GitHub. It runs on the Vercel serverless infrastructure.

Installing & Configuration

Your probably want to clone the repo and deploy it to your Vercel account. No code changes are needed, the configuration is done through environment variables (see Vercel docs).

Variable Default Comments
OAUTH_CLIENT_ID GitHub app ID, see your GitHub settings page.
OAUTH_CLIENT_SECRET GitHub app secret
REDIRECT_URL The public URL this app is deployed at + /callback. Has to match the “Callback URL” setting of your GitHub app.
OAUTH_SCOPES repo,user See GitHub docs for possible values.
GIT_HOSTNAME https://github.com
OAUTH_TOKEN_PATH /login/oauth/access_token
OAUTH_AUTHORIZE_PATH /login/oauth/authorize

Credits

The code is based on marksteele/netlify-serverless-oauth2-backend.

About

GitHub auth proxy for Netlify CMS that can be deployed to Vercel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published