• AuthManager
  • AuthManager Class

    Manages user authentication and access token retrieval. More...

    Header: #include <AuthManager>
    Inherits: QObject

    Signals

    void authenticationError(const QString &error)
    void authenticationSuccess(const DiscoveryPayload &payload, const QString &authToken)
    void authenticationUrlReady(const QUrl &url)

    Detailed Description

    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.

    Internal Members

    Internal Members

    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

    • m_authCore (AuthCore) - Manages the low-level OAuth2 authentication code flow logic.
    • m_authToken (QString) – Stores the current token retrieved during the authentication flow.

    See also AuthCore and AuthBrowserPage.

    Member Function Documentation

    [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.