mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Change callback for succes / failure to the new location
CURA-5744
This commit is contained in:
parent
649f1c8961
commit
202cf698c3
2 changed files with 4 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue