enabled github oauth

This commit is contained in:
QiTao 2020-02-07 21:41:36 -06:00
parent 7a45538d69
commit e5f3410b8b
2 changed files with 6 additions and 2 deletions

View File

@ -97,7 +97,7 @@ const auth_config = {
}, },
}, },
example_oauth: { github_oauth: {
type: 'Oauth2Provider', type: 'Oauth2Provider',
enable: env('AUTH_OAUTH2_ENABLE', true), enable: env('AUTH_OAUTH2_ENABLE', true),

View File

@ -18,3 +18,7 @@ SSL_CERT_KEY=cert.key
#for development, AUTH_FLITTER_ENABLE should be true #for development, AUTH_FLITTER_ENABLE should be true
#AUTH_FLITTER_ENABLE=true #AUTH_FLITTER_ENABLE=true
#insert client ID for oauth
AUTH_OAUTH2_CLIENT_ID=
AUTH_OAUTH2_CLIENT_SECRET=