mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 03:38:59 +08:00
Change callback for succes / failure to the new location
CURA-5744
This commit is contained in:
parent
649f1c8961
commit
202cf698c3
@ -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)
|
||||
|
@ -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!")
|
||||
|
Loading…
x
Reference in New Issue
Block a user