QOAuth1 Class

The QOAuth1 class provides an implementation of the OAuth 1 Protocol. More...

Header: #include <QOAuth1>
qmake: QT += networkauth
Since: Qt 5.8
Inherits: QAbstractOAuth

This class was introduced in Qt 5.8.

Public Types

enum class SignatureMethod { Hmac_Sha1, Rsa_Sha1, PlainText }

Detailed Description

QOAuth1 provides a method for clients to access server resources on behalf of a resource owner (such as a different client or an end-user). It also provides a process for end-users to authorize third-party access to their server resources without sharing their credentials (typically, a username and password pair), using user-agent redirections.

QOAuth1 uses tokens to represent the authorization granted to the client by the resource owner. Typically, token credentials are issued by the server at the resource owner's request, after authenticating the resource owner's identity (usually using a username and password).

When making the temporary credentials request, the client authenticates using only the client credentials. When making the token request, the client authenticates using the client credentials as well as the temporary credentials. Once the client receives and stores the token credentials, it can proceed to access protected resources on behalf of the resource owner by making authenticated requests using the client credentials together with the token credentials received.

Member Type Documentation

enum class QOAuth1::SignatureMethod

Indicates the signature method to be used to sign requests.

ConstantValueDescription
QOAuth1::SignatureMethod::Hmac_Sha10HMAC-SHA1 signature method.
QOAuth1::SignatureMethod::Rsa_Sha11RSA-SHA1 signature method (not supported).
QOAuth1::SignatureMethod::PlainText2PLAINTEXT signature method.