summaryrefslogtreecommitdiffstats
path: root/src/oauth/qabstractoauth.h
Commit message (Collapse)AuthorAgeFilesLines
* Use SPDX license identifiersLucie Gérard2022-06-161-28/+2
| | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. License files are organized under LICENSES directory. Pick-to: 6.4 Task-number: QTBUG-67283 Change-Id: Ic012e87171ed4cef6871eff7d76f56994ea3ca1f Reviewed-by: Jesus Fernandez <jsfdez@gmail.com>
* Fix missing includesVille Voutilainen2022-05-181-0/+1
| | | | | | | | There's been recent header refactorings, this fixes the fallout. Pick-to: 6.3 6.2 Change-Id: I64f369a4806aef4b00fc9f33925fa855520b829f Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Resolve a Qt 6 todoMårten Nordheim2020-11-111-4/+2
| | | | | Change-Id: I788630034a71d78a7c16b0a94e85f15aa41af4b6 Reviewed-by: Jesus Fernandez <jsfdez@gmail.com>
* QVariantMap -> QMultiMap<QString, QVariant> in many casesMårten Nordheim2020-08-111-2/+2
| | | | | | | | | | | | | | Following the separation of QMap and QMultiMap we can no longer create a QMultiMap<QString, QVariant> from a QVariantMap so entries need to be inserted through a raw loop. QMap can also no longer hold multiple values per key and as such parameters where this would be expected have changed to QMultiMap<QString, QVariant> as well. Task-number: QTBUG-85930 Change-Id: I5bdfe38c22ea0cdde5bd1336a0070514e8d6474f Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* Add method to prepare network requestsFelix Barz2019-01-281-0/+5
| | | | | | | | | | | | | | | | | | | | | Sending authenticated requests is limited to the APIs the QAbstractOAuth class provides. With the newly added prepareRequest and sendCustomRequest methods, one can set the correct headers etc. on any custom created network request, including the verb that is used to the request as well the body to be sent. This includes a modifcation to the QOAuth1Signature class to make it possible to sign requests with a custom method. [ChangeLog][QOAuth1Signature] Added customMethodString and setCustomMethodString methods to support signing requests with custom methods. [ChangeLog][QAbstractOAuth] Added prepareRequest and sendCustomRequest methods to authenticate any custom request, including custom verbs and bodies. Change-Id: I86459844ee919e8c9d60d349257b57afbc3fa07a Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* Merge remote-tracking branch 'origin/5.9' into devLiang Qi2017-08-221-2/+3
|\ | | | | | | | | | | | | | | | | | | Conflicts: .qmake.conf src/oauth/qabstractoauth.cpp tests/auto/oauth1/tst_oauth1.cpp Done-with: Jesus Fernandez<jesus.fernandez@qt.io> Change-Id: I5be2c6ad2cd00943ee3acafe5b5c693fc4ada03c
| * Allow sending custom parameters in a token refreshJesus Fernandez2017-08-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new Stage to pass to the parameter modification call-back so that the client code can recognize and adapt when preparing to refresh an access token. [ChangeLog][QAbstractAuth] Adds a token refresh stage allowing parameters modification. Task-number: QTBUG-59104 Change-Id: If6cd1349df163edd27ee083e82e6f537422574ca Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
| * Bump copyright yearJesus Fernandez2017-07-121-1/+1
| | | | | | | | | | Change-Id: Iaad9fb2096cd01a762c3eace90c6154b0d0ebe59 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
* | Move some functions to base classes to avoid virtualJesus Fernandez2017-05-301-4/+9
| | | | | | | | | | | | | | | | | | | | | | OAuth base classes now support responseType, in OAuth2, the basic client identifier and the basic token (without secrets). The base class methods can be called to get and set the properties without needing to override pure virtual member functions. Task-number: QTBUG-60809 Change-Id: Id6b2aebe1a07e62c937078b5206aade53a9a85eb Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* | Add PUT methodJesus Fernandez2017-05-291-0/+2
|/ | | | | | | | | PUT method was missing Task-number: QTBUG-58426 Change-Id: I6f8d71869813048953c48dc32c38ad1d7acd4aba Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Jesus Fernandez <Jesus.Fernandez@qt.io>
* Give clients control over Content-Type in POST methodsJesus Fernandez2017-01-311-0/+13
| | | | | | | | | Allows sending custom data in POST commands. Some web services do not support sending the data as a query. The user will have total control of the data sent. Change-Id: I8228c9a13f40ca1d06796b08b34030ef2ff14b1f Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* Modify licensev5.8.0-rc1v5.8.0Jesus Fernandez2016-12-071-16/+6
| | | | | | | Change-Id: I40cc53ee24ad71a1293dc3b635b2cb545d29a686 Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Tuukka Turunen <tuukka.turunen@theqtcompany.com> Reviewed-by: Fredrik de Vibe <fredrik.devibe@qt.io>
* OAuth supportJesus Fernandez2016-08-191-0/+172
New library to support OAuth1 and OAuth2 standard in Qt. OAuth 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. [ChangeLog][OAuth] Added OAuth support Change-Id: I3971456f93bf6ddd7fd46f555202bab2eb777c15 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>