diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-08-03 19:32:06 -0400 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2016-08-03 18:32:06 -0500 |
commit | 9b50b5028391ee29922ad5549b785ac2312be368 (patch) | |
tree | 35745d30f777825e3335c6310dc9762f20565b98 | |
parent | 224575e099b2116f9f7c2a5eef44f6433464c953 (diff) | |
download | chat-9b50b5028391ee29922ad5549b785ac2312be368.tar.gz chat-9b50b5028391ee29922ad5549b785ac2312be368.tar.bz2 chat-9b50b5028391ee29922ad5549b785ac2312be368.zip |
Hardcode preset OAuth2 endpoints when saving the config from the System Console (#3722)
-rw-r--r-- | webapp/components/admin_console/oauth_settings.jsx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/webapp/components/admin_console/oauth_settings.jsx b/webapp/components/admin_console/oauth_settings.jsx index ba03168ad..61a0dd156 100644 --- a/webapp/components/admin_console/oauth_settings.jsx +++ b/webapp/components/admin_console/oauth_settings.jsx @@ -43,9 +43,9 @@ export default class OAuthSettings extends AdminSettings { config.GoogleSettings.Enable = true; config.GoogleSettings.Id = this.state.id; config.GoogleSettings.Secret = this.state.secret; - config.GoogleSettings.UserApiEndpoint = this.state.userApiEndpoint; - config.GoogleSettings.AuthEndpoint = this.state.authEndpoint; - config.GoogleSettings.TokenEndpoint = this.state.tokenEndpoint; + config.GoogleSettings.UserApiEndpoint = 'https://www.googleapis.com/plus/v1/people/me'; + config.GoogleSettings.AuthEndpoint = 'https://accounts.google.com/o/oauth2/v2/auth'; + config.GoogleSettings.TokenEndpoint = 'https://www.googleapis.com/oauth2/v4/token'; config.GoogleSettings.Scope = 'profile email'; } @@ -53,9 +53,9 @@ export default class OAuthSettings extends AdminSettings { config.Office365Settings.Enable = true; config.Office365Settings.Id = this.state.id; config.Office365Settings.Secret = this.state.secret; - config.Office365Settings.UserApiEndpoint = this.state.userApiEndpoint; - config.Office365Settings.AuthEndpoint = this.state.authEndpoint; - config.Office365Settings.TokenEndpoint = this.state.tokenEndpoint; + config.Office365Settings.UserApiEndpoint = 'https://graph.microsoft.com/v1.0/me'; + config.Office365Settings.AuthEndpoint = 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize'; + config.Office365Settings.TokenEndpoint = 'https://login.microsoftonline.com/common/oauth2/v2.0/token'; config.Office365Settings.Scope = 'User.Read'; } |