Fixed incorrect OAuth2 settings

CURA-5744
This commit is contained in:
Jaime van Kessel 2018-09-24 17:12:45 +02:00
parent 1e5177a44f
commit fe85c020b1

View File

@ -36,11 +36,11 @@ class Account(QObject):
OAUTH_SERVER_URL= self._oauth_root, OAUTH_SERVER_URL= self._oauth_root,
CALLBACK_PORT=self._callback_port, CALLBACK_PORT=self._callback_port,
CALLBACK_URL="http://localhost:{}/callback".format(self._callback_port), CALLBACK_URL="http://localhost:{}/callback".format(self._callback_port),
CLIENT_ID="um---------------ultimaker_cura_drive_plugin", CLIENT_ID="um---------------ultimaker_cura",
CLIENT_SCOPES="user.read drive.backups.read drive.backups.write", CLIENT_SCOPES="user.read drive.backups.read drive.backups.write.client.package.download",
AUTH_DATA_PREFERENCE_KEY="cura_drive/auth_data", AUTH_DATA_PREFERENCE_KEY="general/ultimaker_auth_data",
AUTH_SUCCESS_REDIRECT="{}/cura-drive/v1/auth-success".format(self._cloud_api_root), AUTH_SUCCESS_REDIRECT="{}/auth-success".format(self._cloud_api_root),
AUTH_FAILED_REDIRECT="{}/cura-drive/v1/auth-error".format(self._cloud_api_root) AUTH_FAILED_REDIRECT="{}//auth-error".format(self._cloud_api_root)
) )
self._authorization_service = AuthorizationService(Application.getInstance().getPreferences(), self._oauth_settings) self._authorization_service = AuthorizationService(Application.getInstance().getPreferences(), self._oauth_settings)