From e5f3410b8bfbbbddb4dd58211fa17c8a853754c5 Mon Sep 17 00:00:00 2001 From: QiTao Date: Fri, 7 Feb 2020 21:41:36 -0600 Subject: [PATCH] enabled github oauth --- config/auth.config.js | 2 +- example.env | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/config/auth.config.js b/config/auth.config.js index 4f535a1..86d4776 100644 --- a/config/auth.config.js +++ b/config/auth.config.js @@ -97,7 +97,7 @@ const auth_config = { }, }, - example_oauth: { + github_oauth: { type: 'Oauth2Provider', enable: env('AUTH_OAUTH2_ENABLE', true), diff --git a/example.env b/example.env index 60b04fe..ba47404 100644 --- a/example.env +++ b/example.env @@ -17,4 +17,8 @@ SSL_CERT_FILE=cert.pem SSL_CERT_KEY=cert.key #for development, AUTH_FLITTER_ENABLE should be true -#AUTH_FLITTER_ENABLE=true \ No newline at end of file +#AUTH_FLITTER_ENABLE=true + +#insert client ID for oauth +AUTH_OAUTH2_CLIENT_ID= +AUTH_OAUTH2_CLIENT_SECRET= \ No newline at end of file