Manages user authentication and access token retrieval. More...
Header: | #include <AuthManager> |
Inherits: | QObject |
void | authenticationError(const QString &error) |
void | authenticationSuccess(const DiscoveryPayload &payload, const QString &authToken) |
void | authenticationUrlReady(const QUrl &url) |
AuthenticationManager orchestrates the authentication workflow using a DiscoveryPayload and AuthCore. It emits signals to notify QML or C++ components of key events during the authentication process, such as success, failure, or when the authentication URL is ready for display.
The following private member variables are used internally by AuthManager and are referenced here for developer clarity. Full documentation is available in the source file:
Private Variables
See also AuthCore and AuthBrowserPage.
[signal]
void AuthManager::authenticationError(const QString &error)Emitted when an error occurs during the authentication process.
error contains a human-readable explanation of the failure.
[signal]
void AuthManager::authenticationSuccess(const DiscoveryPayload &payload, const QString &authToken)Emitted when authentication completes successfully.
payload is the discovery data used in the authentication. authToken is the token used to access chat services.
[signal]
void AuthManager::authenticationUrlReady(const QUrl &url)Emitted when the authentication login URL is available.
The url is intended to be loaded in a WebEngineView so the user can complete the login process. This signal originates from the internal AuthCore component and is emitted once a valid authentication flow has begun.
See also AuthBrowserPage and AuthCore.