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/github-enterprise/server/startup.ts

33 lines
884 B

import { settingsRegistry } from '../../settings/server';
settingsRegistry.addGroup('OAuth', function () {
this.section('GitHub Enterprise', function () {
const enableQuery = {
_id: 'Accounts_OAuth_GitHub_Enterprise',
value: true,
};
this.add('Accounts_OAuth_GitHub_Enterprise', false, { type: 'boolean' });
this.add('API_GitHub_Enterprise_URL', '', {
type: 'string',
public: true,
enableQuery,
i18nDescription: 'API_GitHub_Enterprise_URL_Description',
});
this.add('Accounts_OAuth_GitHub_Enterprise_id', '', {
type: 'string',
enableQuery,
secret: true,
});
this.add('Accounts_OAuth_GitHub_Enterprise_secret', '', {
type: 'string',
enableQuery,
secret: true,
});
this.add('Accounts_OAuth_GitHub_Enterprise_callback_url', '_oauth/github_enterprise', {
type: 'relativeUrl',
readonly: true,
enableQuery,
});
});
});