diff --git a/cura/API/Account.py b/cura/API/Account.py index e0cc4013ac..18d9d5df03 100644 --- a/cura/API/Account.py +++ b/cura/API/Account.py @@ -39,8 +39,8 @@ class Account(QObject): CLIENT_ID="um---------------ultimaker_cura_drive_plugin", CLIENT_SCOPES="user.read drive.backups.read drive.backups.write", AUTH_DATA_PREFERENCE_KEY="general/ultimaker_auth_data", - AUTH_SUCCESS_REDIRECT="{}/auth-success".format(self._cloud_api_root), - AUTH_FAILED_REDIRECT="{}/auth-error".format(self._cloud_api_root) + AUTH_SUCCESS_REDIRECT="{}/app/auth-success".format(self._oauth_root), + AUTH_FAILED_REDIRECT="{}/app/auth-error".format(self._oauth_root) ) self._authorization_service = AuthorizationService(Application.getInstance().getPreferences(), self._oauth_settings) diff --git a/tests/TestOAuth2.py b/tests/TestOAuth2.py index 312d71fd5f..22bf0656ef 100644 --- a/tests/TestOAuth2.py +++ b/tests/TestOAuth2.py @@ -18,8 +18,8 @@ OAUTH_SETTINGS = OAuth2Settings( CLIENT_ID="", CLIENT_SCOPES="", AUTH_DATA_PREFERENCE_KEY="test/auth_data", - AUTH_SUCCESS_REDIRECT="{}/auth-success".format(CLOUD_API_ROOT), - AUTH_FAILED_REDIRECT="{}/auth-error".format(CLOUD_API_ROOT) + AUTH_SUCCESS_REDIRECT="{}/app/auth-success".format(OAUTH_ROOT), + AUTH_FAILED_REDIRECT="{}/app/auth-error".format(OAUTH_ROOT) ) FAILED_AUTH_RESPONSE = AuthenticationResponse(success = False, err_message = "FAILURE!")