A full-screen authentication page used to complete OAuth2 login. More...
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.
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(); } } }
Note: If no payload is set before component completion, the authentication process will not start.