Encapsulates the data of a WebAuth UX request. 更多...
import 语句: | import QtWebEngine |
Since: | QtWebEngine 6.7 |
实例化: | QWebEngineWebAuthUxRequest |
Web engine'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
|
The WebAuth request's PIN request information.
另请参阅 QWebEngineWebAuthPinRequest .
relyingPartyId
:
string
|
The WebAuth request's relying party id.
requestFailureReason
:
enumeration
|
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
|
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
|
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 .