fix: some additional style changes
This commit is contained in:
parent
2840b0568e
commit
b82a4cf4f9
13
library.js
13
library.js
@ -27,7 +27,6 @@
|
|||||||
const nconf = module.parent.require('nconf');
|
const nconf = module.parent.require('nconf');
|
||||||
const winston = module.parent.require('winston');
|
const winston = module.parent.require('winston');
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* REMEMBER
|
* REMEMBER
|
||||||
* Never save your OAuth Key/Secret or OAuth2 ID/Secret pair in code! It could be published and leaked accidentally.
|
* Never save your OAuth Key/Secret or OAuth2 ID/Secret pair in code! It could be published and leaked accidentally.
|
||||||
@ -47,7 +46,7 @@
|
|||||||
* `OAUTH__ID=someoauthid OAUTH__SECRET=youroauthsecret node app.js`
|
* `OAUTH__ID=someoauthid OAUTH__SECRET=youroauthsecret node app.js`
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var constants = Object.freeze({
|
const constants = Object.freeze({
|
||||||
type: '', // Either 'oauth' or 'oauth2'
|
type: '', // Either 'oauth' or 'oauth2'
|
||||||
name: '', // Something unique to your OAuth provider in lowercase, like "github", or "nodebb"
|
name: '', // Something unique to your OAuth provider in lowercase, like "github", or "nodebb"
|
||||||
oauth: {
|
oauth: {
|
||||||
@ -66,12 +65,10 @@
|
|||||||
userRoute: '', // This is the address to your app's "user profile" API endpoint (expects JSON)
|
userRoute: '', // This is the address to your app's "user profile" API endpoint (expects JSON)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const OAuth = {};
|
||||||
var configOk = false;
|
let configOk = false;
|
||||||
|
let passportOAuth;
|
||||||
|
let opts;
|
||||||
var OAuth = {}; var passportOAuth; var
|
|
||||||
opts;
|
|
||||||
|
|
||||||
if (!constants.name) {
|
if (!constants.name) {
|
||||||
winston.error('[sso-oauth] Please specify a name for your OAuth provider (library.js:32)');
|
winston.error('[sso-oauth] Please specify a name for your OAuth provider (library.js:32)');
|
||||||
|
Loading…
Reference in New Issue
Block a user