The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/app/gitlab/server/startup.ts

30 lines
955 B

import { settingsRegistry } from '../../settings/server';
settingsRegistry.addGroup('OAuth', function () {
this.section('GitLab', function () {
const enableQuery = {
_id: 'Accounts_OAuth_Gitlab',
value: true,
};
this.add('Accounts_OAuth_Gitlab', false, { type: 'boolean', public: true });
this.add('API_Gitlab_URL', '', { type: 'string', enableQuery, public: true, secret: true });
this.add('Accounts_OAuth_Gitlab_id', '', { type: 'string', enableQuery });
this.add('Accounts_OAuth_Gitlab_secret', '', { type: 'string', enableQuery, secret: true });
this.add('Accounts_OAuth_Gitlab_identity_path', '/api/v4/user', {
type: 'string',
public: true,
enableQuery,
});
this.add('Accounts_OAuth_Gitlab_merge_users', false, {
type: 'boolean',
public: true,
enableQuery,
});
this.add('Accounts_OAuth_Gitlab_callback_url', '_oauth/gitlab', {
type: 'relativeUrl',
readonly: true,
enableQuery,
});
});
});