mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
authentification oauth2
This commit is contained in:
parent
c115046a7c
commit
1c8a00943c
3 changed files with 31 additions and 0 deletions
|
|
@ -54,5 +54,24 @@ Meteor.startup(() => {
|
|||
Authentication.checkAdminOrCondition(userId, normalAccess);
|
||||
};
|
||||
|
||||
if (Meteor.isServer) {
|
||||
ServiceConfiguration.configurations.upsert(
|
||||
{ service: 'oidc' },
|
||||
{
|
||||
$set: {
|
||||
loginStyle: 'redirect',
|
||||
clientId: 'CLIENT_ID',
|
||||
secret: 'SECRET',
|
||||
serverUrl: 'https://my-server',
|
||||
authorizationEndpoint: '/oauth/authorize',
|
||||
userinfoEndpoint: '/oauth/userinfo',
|
||||
tokenEndpoint: '/oauth/token',
|
||||
idTokenWhitelistFields: [],
|
||||
requestPermissions: ['openid']
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue