Cleaned up the copied project & got the Google authentication working. A lot of work still needs to be done to add content and allow only certain users access.
This commit is contained in:
@@ -5,8 +5,18 @@
|
||||
*/
|
||||
|
||||
try {
|
||||
let settingsFile = process.env.SETTINGS;
|
||||
let settings = JSON.parse(Assets.getText(settingsFile));
|
||||
let settings = Assets.getText('settings.json');
|
||||
|
||||
if(settings) {
|
||||
try {
|
||||
settings = JSON.parse(settings);
|
||||
}
|
||||
catch(err) {
|
||||
console.error("Failed to load the /private/settings.json file as a JSON object.");
|
||||
console.error(err);
|
||||
settings = null;
|
||||
}
|
||||
}
|
||||
|
||||
if (settings) {
|
||||
ServiceConfiguration.configurations.upsert({
|
||||
@@ -24,4 +34,17 @@ try {
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
ServiceConfiguration.configurations.upsert(
|
||||
{ service: 'google' },
|
||||
{
|
||||
$set: {
|
||||
clientId: '651343079360-hm5vvji109lphnavft8vej5pp1ruek5q.apps.googleusercontent.com',
|
||||
loginStyle: 'popup',
|
||||
secret: 'VAQFr6UBkZ0ZMQJ7tb471BmW'
|
||||
}
|
||||
}
|
||||
);
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user