• AuthBrowserPage
  • AuthBrowserPage QML Type

    A full-screen authentication page used to complete OAuth2 login. More...

    Detailed Description

    AuthBrowserPage presents a login interface for the user by displaying the authentication web page inside a WebEngineView. It is dynamically pushed onto a StackView by the main application in response to a completed discovery event.

    The authentication flow begins automatically when the component loads and a payload is set. The component listens for results from an AuthManager and emits loginCompleted on success or loginCanceled if the user backs out.

    Typical Usage

    AuthBrowserPage is usually loaded by the root application after a DiscoveryPage emits a discoveryCompleted signal:

    DiscoveryPage {
        onDiscoveryCompleted: (payload) => {
            stackView.push(authPageComponent, { payload: payload });
        }
    }
    
    Component {
        id: authPageComponent
        AuthBrowserPage {
            onLoginCompleted: (payload, token) => {
                openChatWindow(payload, token);
            }
    
            onLoginCanceled: {
                stackView.pop();
            }
        }
    }

    Properties

    • payload (DiscoveryPayload) — The server and endpoint metadata used to initiate authentication.

    Signals

    • loginCompleted(DiscoveryPayload, string) — Emitted when authentication is successful.
    • loginCanceled() — Emitted when the user cancels the login process.

    Note: If no payload is set before component completion, the authentication process will not start.