Skip to content
Snippets Groups Projects
Commit 955a32c9 authored by Marcelo Schmidt's avatar Marcelo Schmidt
Browse files

Fixes #2052. Shows OAuth Callback URLs

parent 1a12091d
No related branches found
No related tags found
No related merge requests found
......@@ -40,24 +40,31 @@
"Accounts_OAuth_Facebook" : "Facebook Login",
"Accounts_OAuth_Facebook_id" : "Facebook App Id",
"Accounts_OAuth_Facebook_secret" : "Facebook Secret",
"Accounts_OAuth_Facebook_callback_url" : "Facebook Callback URL",
"Accounts_OAuth_Github" : "OAuth Enabled",
"Accounts_OAuth_Github_id" : "Client Id",
"Accounts_OAuth_Github_secret" : "Client Secret",
"Accounts_OAuth_Github_callback_url" : "Github Callback URL",
"Accounts_OAuth_Gitlab" : "OAuth Enabled",
"Accounts_OAuth_Gitlab_id" : "Gitlab Id",
"Accounts_OAuth_Gitlab_secret" : "Client Secret",
"Accounts_OAuth_Gitlab_callback_url" : "Gitlab Callback URL",
"Accounts_OAuth_Google" : "Google Login",
"Accounts_OAuth_Google_id" : "Google Id",
"Accounts_OAuth_Google_secret" : "Google Secret",
"Accounts_OAuth_Google_callback_url" : "Google Callback URL",
"Accounts_OAuth_Linkedin" : "LinkedIn Login",
"Accounts_OAuth_Linkedin_id" : "LinkedIn Id",
"Accounts_OAuth_Linkedin_secret" : "LinkedIn Secret",
"Accounts_OAuth_Linkedin_callback_url" : "Linkedin Callback URL",
"Accounts_OAuth_Meteor" : "Meteor Login",
"Accounts_OAuth_Meteor_id" : "Meteor Id",
"Accounts_OAuth_Meteor_secret" : "Meteor Secret",
"Accounts_OAuth_Meteor_callback_url" : "Meteor Callback URL",
"Accounts_OAuth_Twitter" : "Twitter Login",
"Accounts_OAuth_Twitter_id" : "Twitter Id",
"Accounts_OAuth_Twitter_secret" : "Twitter Secret",
"Accounts_OAuth_Twitter_callback_url" : "Twitter Callback URL",
"Accounts_PasswordReset" : "Password Reset",
"Accounts_Registration_AuthenticationServices_Enabled" : "Registration with Authentication Services",
"Accounts_RegistrationForm" : "Registration Form",
......
......@@ -3,5 +3,6 @@
"API_GitHub_Enterprise_URL" : "Server URL",
"Accounts_OAuth_GitHub_Enterprise_id" : "Client Id",
"Accounts_OAuth_GitHub_Enterprise_secret" : "Client Secret",
"Accounts_OAuth_GitHub_Enterprise_callback_url" : "Github Enterprise Callback URL",
"Github_Enterprise_Url_No_Trail" : "Example: http://domain.com (excluding trailing slash)"
}
\ No newline at end of file
......@@ -4,3 +4,4 @@ Meteor.startup ->
RocketChat.settings.add 'API_GitHub_Enterprise_URL', '', { type: 'string', group: 'Accounts', public: true, section: 'GitHub Enterprise', i18nLabel: 'API_GitHub_Enterprise_URL', i18nDescription: 'Github_Enterprise_Url_No_Trail' }
RocketChat.settings.add 'Accounts_OAuth_GitHub_Enterprise_id', '', { type: 'string', group: 'Accounts', section: 'GitHub Enterprise', i18nLabel: 'Accounts_OAuth_GitHub_Enterprise_id' }
RocketChat.settings.add 'Accounts_OAuth_GitHub_Enterprise_secret', '', { type: 'string', group: 'Accounts', section: 'GitHub Enterprise', i18nLabel: 'Accounts_OAuth_GitHub_Enterprise_secret' }
RocketChat.settings.add 'Accounts_OAuth_GitHub_Enterprise_callback_url', __meteor_runtime_config__?.ROOT_URL + '_oauth/github_enterprise', { type: 'string', blocked: true }
\ No newline at end of file
......@@ -24,7 +24,7 @@ RocketChat.settings.add = (_id, value, options = {}) ->
options.valueSource = 'packageValue'
options.ts = new Date
options.hidden = false
options.blocked = false
options.blocked = options.blocked || false
options.sorter ?= RocketChat.settings._sorter++
if options.enableQuery?
......
......@@ -35,36 +35,43 @@ RocketChat.settings.addGroup 'Accounts', ->
@add 'Accounts_OAuth_Facebook', false, { type: 'boolean', public: true }
@add 'Accounts_OAuth_Facebook_id', '', { type: 'string', enableQuery: {_id: 'Accounts_OAuth_Facebook', value: true} }
@add 'Accounts_OAuth_Facebook_secret', '', { type: 'string', enableQuery: {_id: 'Accounts_OAuth_Facebook', value: true} }
@add 'Accounts_OAuth_Facebook_callback_url', __meteor_runtime_config__?.ROOT_URL + '_oauth/facebook', { type: 'string', blocked: true }
@section 'Google', ->
@add 'Accounts_OAuth_Google', false, { type: 'boolean', public: true }
@add 'Accounts_OAuth_Google_id', '', { type: 'string', enableQuery: {_id: 'Accounts_OAuth_Google', value: true} }
@add 'Accounts_OAuth_Google_secret', '', { type: 'string', enableQuery: {_id: 'Accounts_OAuth_Google', value: true} }
@add 'Accounts_OAuth_Google_callback_url', __meteor_runtime_config__?.ROOT_URL + '_oauth/google', { type: 'string', blocked: true }
@section 'Github', ->
@add 'Accounts_OAuth_Github', false, { type: 'boolean', public: true }
@add 'Accounts_OAuth_Github_id', '', { type: 'string', enableQuery: {_id: 'Accounts_OAuth_Github', value: true} }
@add 'Accounts_OAuth_Github_secret', '', { type: 'string', enableQuery: {_id: 'Accounts_OAuth_Github', value: true} }
@add 'Accounts_OAuth_Github_callback_url', __meteor_runtime_config__?.ROOT_URL + '_oauth/github', { type: 'string', blocked: true }
@section 'Gitlab', ->
@add 'Accounts_OAuth_Gitlab', false, { type: 'boolean', public: true }
@add 'Accounts_OAuth_Gitlab_id', '', { type: 'string', enableQuery: {_id: 'Accounts_OAuth_Gitlab', value: true} }
@add 'Accounts_OAuth_Gitlab_secret', '', { type: 'string', enableQuery: {_id: 'Accounts_OAuth_Gitlab', value: true} }
@add 'Accounts_OAuth_Gitlab_callback_url', __meteor_runtime_config__?.ROOT_URL + '_oauth/gitlab', { type: 'string', blocked: true }
@section 'Linkedin', ->
@add 'Accounts_OAuth_Linkedin', false, { type: 'boolean', public: true }
@add 'Accounts_OAuth_Linkedin_id', '', { type: 'string', enableQuery: {_id: 'Accounts_OAuth_Linkedin', value: true} }
@add 'Accounts_OAuth_Linkedin_secret', '', { type: 'string', enableQuery: {_id: 'Accounts_OAuth_Linkedin', value: true} }
@add 'Accounts_OAuth_Linkedin_callback_url', __meteor_runtime_config__?.ROOT_URL + '_oauth/linkedin', { type: 'string', blocked: true }
@section 'Meteor', ->
@add 'Accounts_OAuth_Meteor', false, { type: 'boolean', public: true }
@add 'Accounts_OAuth_Meteor_id', '', { type: 'string', enableQuery: {_id: 'Accounts_OAuth_Meteor', value: true} }
@add 'Accounts_OAuth_Meteor_secret', '', { type: 'string', enableQuery: {_id: 'Accounts_OAuth_Meteor', value: true} }
@add 'Accounts_OAuth_Meteor_callback_url', __meteor_runtime_config__?.ROOT_URL + '_oauth/meteor', { type: 'string', blocked: true }
@section 'Twitter', ->
@add 'Accounts_OAuth_Twitter', false, { type: 'boolean', public: true }
@add 'Accounts_OAuth_Twitter_id', '', { type: 'string', enableQuery: {_id: 'Accounts_OAuth_Twitter', value: true} }
@add 'Accounts_OAuth_Twitter_secret', '', { type: 'string', enableQuery: {_id: 'Accounts_OAuth_Twitter', value: true} }
@add 'Accounts_OAuth_Twitter_callback_url', __meteor_runtime_config__?.ROOT_URL + '_oauth/twitter', { type: 'string', blocked: true }
RocketChat.settings.addGroup 'FileUpload', ->
......
......@@ -2,5 +2,6 @@
"API_Wordpress_URL" : "WordPress URL",
"Accounts_OAuth_Wordpress" : "WordPress Login",
"Accounts_OAuth_Wordpress_id" : "WordPress Id",
"Accounts_OAuth_Wordpress_secret" : "WordPress Secret"
"Accounts_OAuth_Wordpress_secret" : "WordPress Secret",
"Accounts_OAuth_Wordpress_callback_url" : "Wordpress Callback URL"
}
\ No newline at end of file
......@@ -2,4 +2,5 @@ RocketChat.settings.add 'API_Wordpress_URL', '', { type: 'string', group: 'Accou
RocketChat.settings.add 'Accounts_OAuth_Wordpress', false, { type: 'boolean', group: 'Accounts', section: 'WordPress' }
RocketChat.settings.add 'Accounts_OAuth_Wordpress_id', '', { type: 'string', group: 'Accounts', section: 'WordPress' }
RocketChat.settings.add 'Accounts_OAuth_Wordpress_secret', '', { type: 'string', group: 'Accounts', section: 'WordPress' }
RocketChat.settings.add 'Accounts_OAuth_Wordpress_callback_url', __meteor_runtime_config__?.ROOT_URL + '_oauth/wordpress', { type: 'string', blocked: true }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment