summaryrefslogtreecommitdiffstats
path: root/server/authentication.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/authentication.js')
-rw-r--r--server/authentication.js45
1 files changed, 22 insertions, 23 deletions
diff --git a/server/authentication.js b/server/authentication.js
index 6310e8df..8a74ebf7 100644
--- a/server/authentication.js
+++ b/server/authentication.js
@@ -62,28 +62,27 @@ Meteor.startup(() => {
Authentication.checkAdminOrCondition(userId, normalAccess);
};
- if (Meteor.isServer) {
-
- if(process.env.OAUTH2_CLIENT_ID !== '') {
-
- ServiceConfiguration.configurations.upsert( // eslint-disable-line no-undef
- { service: 'oidc' },
- {
- $set: {
- loginStyle: 'redirect',
- clientId: process.env.OAUTH2_CLIENT_ID,
- secret: process.env.OAUTH2_SECRET,
- serverUrl: process.env.OAUTH2_SERVER_URL,
- authorizationEndpoint: process.env.OAUTH2_AUTH_ENDPOINT,
- userinfoEndpoint: process.env.OAUTH2_USERINFO_ENDPOINT,
- tokenEndpoint: process.env.OAUTH2_TOKEN_ENDPOINT,
- idTokenWhitelistFields: [],
- requestPermissions: ['openid'],
- },
- }
- );
- }
- }
+// if (Meteor.isServer) {
+//
+// if(process.env.OAUTH2_CLIENT_ID !== '') {
+//
+// ServiceConfiguration.configurations.upsert( // eslint-disable-line no-undef
+// { service: 'oidc' },
+// {
+// $set: {
+// loginStyle: 'redirect',
+// clientId: process.env.OAUTH2_CLIENT_ID,
+// secret: process.env.OAUTH2_SECRET,
+// serverUrl: process.env.OAUTH2_SERVER_URL,
+// authorizationEndpoint: process.env.OAUTH2_AUTH_ENDPOINT,
+// userinfoEndpoint: process.env.OAUTH2_USERINFO_ENDPOINT,
+// tokenEndpoint: process.env.OAUTH2_TOKEN_ENDPOINT,
+// idTokenWhitelistFields: [],
+// requestPermissions: ['openid'],
+// },
+// }
+// );
+// }
+// }
});
-