QAbstractOAuthReplyHandler — PyQt Documentation v6.9.0 (original) (raw)
PyQt6.QtNetworkAuth.QAbstractOAuthReplyHandler
Inherits from QObject.
Inherited by QOAuthOobReplyHandler.
Description¶
Handles replies to OAuth authentication requests.
The QAbstractOAuthReplyHandler class handles the answers to all OAuth authentication requests. This class is designed as a base whose subclasses implement custom behavior in the callback() and networkReplyFinished() methods.
Methods¶
__init__(parent: QObject = None)
Constructs a reply handler as a child of parent.
callback() → str
TODO
networkReplyFinished(QNetworkReply)
TODO
Signals¶
callbackDataReceived(Union[QByteArray, bytes, bytearray, memoryview])
This signal is emitted when a callback request is received: data contains the information before parsing.
callbackReceived(dict[Optional[str], Any])
This signal is emitted when the reply from the server is received, with values containing the token credentials and any additional information the server may have returned. When this signal is emitted, the authorization process is complete.
replyDataReceived(Union[QByteArray, bytes, bytearray, memoryview])
This signal is emitted when an HTTP request finishes and the data is available. data contains the response before parsing.
tokenRequestErrorOccurred(Error, Optional[str])
This signal is emitted when a token request or refresh error has occurred. The errorString may provide further details on the error.
tokensReceived(dict[Optional[str], Any])
This signal is emitted when new tokens are received from the server.