Change callback for succes / failure to the new location

CURA-5744
This commit is contained in:
Jaime van Kessel 2018-09-27 11:56:19 +02:00
parent 649f1c8961
commit 202cf698c3
2 changed files with 4 additions and 4 deletions

View File

@ -39,8 +39,8 @@ class Account(QObject):
CLIENT_ID="um---------------ultimaker_cura_drive_plugin", CLIENT_ID="um---------------ultimaker_cura_drive_plugin",
CLIENT_SCOPES="user.read drive.backups.read drive.backups.write", CLIENT_SCOPES="user.read drive.backups.read drive.backups.write",
AUTH_DATA_PREFERENCE_KEY="general/ultimaker_auth_data", AUTH_DATA_PREFERENCE_KEY="general/ultimaker_auth_data",
AUTH_SUCCESS_REDIRECT="{}/auth-success".format(self._cloud_api_root), AUTH_SUCCESS_REDIRECT="{}/app/auth-success".format(self._oauth_root),
AUTH_FAILED_REDIRECT="{}/auth-error".format(self._cloud_api_root) AUTH_FAILED_REDIRECT="{}/app/auth-error".format(self._oauth_root)
) )
self._authorization_service = AuthorizationService(Application.getInstance().getPreferences(), self._oauth_settings) self._authorization_service = AuthorizationService(Application.getInstance().getPreferences(), self._oauth_settings)

View File

@ -18,8 +18,8 @@ OAUTH_SETTINGS = OAuth2Settings(
CLIENT_ID="", CLIENT_ID="",
CLIENT_SCOPES="", CLIENT_SCOPES="",
AUTH_DATA_PREFERENCE_KEY="test/auth_data", AUTH_DATA_PREFERENCE_KEY="test/auth_data",
AUTH_SUCCESS_REDIRECT="{}/auth-success".format(CLOUD_API_ROOT), AUTH_SUCCESS_REDIRECT="{}/app/auth-success".format(OAUTH_ROOT),
AUTH_FAILED_REDIRECT="{}/auth-error".format(CLOUD_API_ROOT) AUTH_FAILED_REDIRECT="{}/app/auth-error".format(OAUTH_ROOT)
) )
FAILED_AUTH_RESPONSE = AuthenticationResponse(success = False, err_message = "FAILURE!") FAILED_AUTH_RESPONSE = AuthenticationResponse(success = False, err_message = "FAILURE!")