mirror of
https://github.com/wekan/wekan.git
synced 2026-01-05 17:18:49 +01:00
- Remove OAuth2, until it is fixed.
Thanks to xet7 !
This commit is contained in:
parent
2e52ff9e9d
commit
53a020a23a
4 changed files with 47 additions and 47 deletions
|
|
@ -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'],
|
||||
// },
|
||||
// }
|
||||
// );
|
||||
// }
|
||||
// }
|
||||
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue