Skip to content

Provides the server-side implementation for GitHub oAuth.

Notifications You must be signed in to change notification settings

reposense/RepoSense-auth-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RepoSense-auth-helper

Exchanges the code from GitHub together with the client_secret to obtain the oAuth access_token, as outlined in step 2 of the oAuth web application flow.

This helper is necessary as the client_secret cannot be exposed on any client-only application.

Deployed with Cloudflare Workers, eliminating the need for traditional server-based solutions like Gatekeeper.

Setting Up

Create a .dev.vars file in the root directory and insert the client_secret of the GitHub oAuth app like so:

CLIENT_SECRET=<YOUR_CLIENT_SECRET_HERE>

Refer to the Cloudflare guide to learn how to run the worker locally.

Publishing

Before publishing the worker, we need to define the environment secret by running the following command:

wrangler secret put CLIENT_SECRET

See the Cloudflare docs for more information.

About

Provides the server-side implementation for GitHub oAuth.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published