QAbstractOAuthReplyHandler¶
Handles replies to OAuth authentication requests. More…
Inherited by: QOAuthOobReplyHandler, QOAuthHttpServerReplyHandler
Detailed Description¶
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.
- class PySide6.QtNetworkAuth.QAbstractOAuthReplyHandler([parent=None])¶
- Parameters
parent –
PySide6.QtCore.QObject
Constructs a reply handler as a child of parent
.
- PySide6.QtNetworkAuth.QAbstractOAuthReplyHandler.callback()¶
- Return type
str
Returns an absolute URI that the server will redirect the resource owner back to when the Resource Owner Authorization step is completed. If the client is unable to receive callbacks or a callback URI has been established via other means, the parameter value must be set to “oob” (all lower-case), to indicate an out-of-band configuration.
Derived classes should implement this function to provide the expected callback type.
- PySide6.QtNetworkAuth.QAbstractOAuthReplyHandler.callbackDataReceived(data)¶
- Parameters
data –
PySide6.QtCore.QByteArray
- PySide6.QtNetworkAuth.QAbstractOAuthReplyHandler.callbackReceived(values)¶
- Parameters
values –
- PySide6.QtNetworkAuth.QAbstractOAuthReplyHandler.networkReplyFinished(reply)¶
- Parameters
reply –
PySide6.QtNetwork.QNetworkReply
After the server determines whether the request is valid this function will be called. Reimplement it to get the data received from the server wrapped in reply
.
- PySide6.QtNetworkAuth.QAbstractOAuthReplyHandler.replyDataReceived(data)¶
- Parameters
data –
PySide6.QtCore.QByteArray
- PySide6.QtNetworkAuth.QAbstractOAuthReplyHandler.tokensReceived(tokens)¶
- Parameters
tokens –
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.