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:
2022-03-09 07:55:26 -08:00
parent c61ca6b32e
commit 9e0e231152
16 changed files with 257 additions and 448 deletions

View File

@@ -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'
}
}
);
*/