mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 08:17:49 -06:00
Fix AuthorizationService signals
This commit is contained in:
parent
3c86bf140c
commit
aac9af577b
1 changed files with 8 additions and 8 deletions
|
@ -31,15 +31,15 @@ class AuthorizationService:
|
||||||
account information.
|
account information.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Emit signal when authentication is completed.
|
|
||||||
onAuthStateChanged = Signal()
|
|
||||||
|
|
||||||
# Emit signal when authentication failed.
|
|
||||||
onAuthenticationError = Signal()
|
|
||||||
|
|
||||||
accessTokenChanged = Signal()
|
|
||||||
|
|
||||||
def __init__(self, settings: "OAuth2Settings", preferences: Optional["Preferences"] = None) -> None:
|
def __init__(self, settings: "OAuth2Settings", preferences: Optional["Preferences"] = None) -> None:
|
||||||
|
# Emit signal when authentication is completed.
|
||||||
|
self.onAuthStateChanged = Signal()
|
||||||
|
|
||||||
|
# Emit signal when authentication failed.
|
||||||
|
self.onAuthenticationError = Signal()
|
||||||
|
|
||||||
|
self.accessTokenChanged = Signal()
|
||||||
|
|
||||||
self._settings = settings
|
self._settings = settings
|
||||||
self._auth_helpers = AuthorizationHelpers(settings)
|
self._auth_helpers = AuthorizationHelpers(settings)
|
||||||
self._auth_url = "{}/authorize".format(self._settings.OAUTH_SERVER_URL)
|
self._auth_url = "{}/authorize".format(self._settings.OAUTH_SERVER_URL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue