WebEngineWebAuthUxRequest QML Type

Encapsulates the data of a WebAuth UX request. 更多...

import 語句: import QtWebEngine
Since: QtWebEngine 6.7
在 C++: QWebEngineWebAuthUxRequest

特性

信號

方法

詳細描述

WebEngine 's WebAuth UX requests are passed to the user in the WebEngineView::webAuthUxRequested () 信號。

For more information about how to handle web engine authenticator requests, see the 納米瀏覽器 .

特性文檔編製

pinRequest : QWebEngineWebAuthPinRequest [read-only]

The WebAuth request's PIN request information.

另請參閱 QWebEngineWebAuthPinRequest .

relyingPartyId : string [read-only]

The WebAuth request's relying party id.

requestFailureReason : enumeration [read-only]

The WebAuth request's failure reason.

常量 描述
WebEngineWebAuthUxRequest.RequestFailureReason.Timeout The authentication session has timed out.
WebEngineWebAuthUxRequest.RequestFailureReason.KeyNotRegistered Key is not registered with the authenticator.
WebEngineWebAuthUxRequest.RequestFailureReason.KeyAlreadyRegistered Key is already registered with the authenticator. Try to register with another key or use another authenticator.
WebEngineWebAuthUxRequest.RequestFailureReason.SoftPinBlock The authenticator is blocked as the user entered the wrong key many times.
WebEngineWebAuthUxRequest.RequestFailureReason.HardPinBlock The authenticator is blocked as the user entered the wrong key many times and reset the PIN to use the specific authenticator again.
WebEngineWebAuthUxRequest.RequestFailureReason.AuthenticatorRemovedDuringPinEntry Authenticator removed during PIN entry.
WebEngineWebAuthUxRequest.RequestFailureReason.AuthenticatorMissingResidentKeys Authenticator doesn't have resident key support.
WebEngineWebAuthUxRequest.RequestFailureReason.AuthenticatorMissingUserVerification Authenticator doesn't have user verification support.
WebEngineWebAuthUxRequest.RequestFailureReason.AuthenticatorMissingLargeBlob Authenticator doesn't have large blob support.
WebEngineWebAuthUxRequest.RequestFailureReason.NoCommonAlgorithms No common algorithm.
WebEngineWebAuthUxRequest.RequestFailureReason.StorageFull The resident credential could not be created because the authenticator has insufficient storage.
WebEngineWebAuthUxRequest.RequestFailureReason.UserConsentDenied User consent denied.
WebEngineWebAuthUxRequest.RequestFailureReason.WinUserCancelled The user clicked Cancel in the native windows UI.

另請參閱 stateChanged ().

state : enumeration [read-only]

The WebAuth request's current UX state.

常量 描述
WebEngineWebAuthUxRequest.WebAuthUxState.NotStarted WebAuth UX request not started yet.
WebEngineWebAuthUxRequest.WebAuthUxState.SelectAccount The authenticator requires resident credential details. The application needs to display an account details dialog, and the user needs to select an account to proceed.
WebEngineWebAuthUxRequest.WebAuthUxState.CollectPin The authenticator requires user verification. The application needs to display a PIN request dialog.
WebEngineWebAuthUxRequest.WebAuthUxState.FinishTokenCollection The authenticator requires token/user verification (like tap on the FIDO key) to complete the process.
WebEngineWebAuthUxRequest.WebAuthUxState.RequestFailed WebAuth request failed. Display error details.
WebEngineWebAuthUxRequest.WebAuthUxState.Cancelled WebAuth request is cancelled. Close the WebAuth dialog.
WebEngineWebAuthUxRequest.WebAuthUxState.Completed WebAuth request is completed. Close the WebAuth dialog.

userNames : stringlist [read-only]

The available user names for the resident credential support.

This is needed when the current WebAuth request's UX state is WebEngineWebAuthUxRequest .WebAuthUxState.SelectAccount. The WebAuth dialog displays user names. The user needs to select an account to proceed.

另請參閱 state , setSelectedAccount (),和 QWebEngineWebAuthUxRequest::userNames .

信號文檔編製

void stateChanged ( WebAuthUxState state )

This signal is emitted whenever the WebAuth UX's state 改變。

注意: 相應處理程序是 onStateChanged .

另請參閱 state and QWebEngineWebAuthUxRequest::WebAuthUxState .

方法文檔編製

void cancel ()

Cancels the current WebAuth request.

另請參閱 QWebEngineWebAuthUxRequest::Cancelled and WebEngineWebAuthUxRequest::stateChanged ().

void retry ()

Retries the current WebAuth request.

另請參閱 stateChanged ().

void setPin (const QString & pin )

發送 pin to the authenticator that prompts for a PIN. This is needed when the current WebAuth request's UX state is WebEngineWebAuthUxRequest .WebAuthUxState.CollectPin. The WebAuth request is blocked until the user responds with a PIN.

另請參閱 QWebEngineWebAuthPinRequest and state .

void setSelectedAccount (const QString & selectedAccount )

發送 selectedAccount name to the authenticator. This is needed when the current WebAuth request's UX state is WebEngineWebAuthUxRequest .WebAuthUxState.SelectAccount. The WebAuth request is blocked until the user selects an account and invokes this method.

另請參閱 WebEngineWebAuthUxRequest::userNames and state .