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/packages/rocketchat-lib/server/oauth/proxy.js

11 lines
387 B

/* globals OAuth */
OAuth._redirectUri = _.wrap(OAuth._redirectUri, function(func, serviceName, ...args) {
const proxy = RocketChat.settings.get('Accounts_OAuth_Proxy_services').replace(/\s/g, '').split(',');
if (proxy.includes(serviceName)) {
return `${ RocketChat.settings.get('Accounts_OAuth_Proxy_host') }/oauth_redirect`;
} else {
return func(serviceName, ...args);
}
});