Skip to content

OAuth Login

Maksim Rakitin edited this page Apr 16, 2019 · 6 revisions

OAuth support is controlled by three config/environment variables:

export SIREPO_FEATURE_CONFIG_API_MODULES=oauth
export SIREPO_OAUTH_GITHUB_KEY=<github app client id>
export SIREPO_OAUTH_GITHUB_SECRET=<github app client secret>

Note: you may need to have other modules in SIREPO_FEATURE_CONFIG_API_MODULES, depending on your installation.

To create a new GitHub app, visit:

https://github.com/settings/developers

and select "Register a new application". For the "Authorization callback URL", use your server:port (or no :port, if default) with the path "github/oauth-authorized". For example, if you are running a dev server on localhost:8000, use the URL:

http://localhost:8000/oauth-authorized/github

Clone this wiki locally