29 Commits

Author SHA1 Message Date
Mats Anderberg
2ea42618c7 pre-commit changes 2025-04-16 06:17:26 +10:00
Mats Anderberg
083d70e2d0 Client credentials flow added to link method in o2 2025-04-16 06:17:26 +10:00
sweco-se1b6a
5281b224a4 Oath2 with client credentials
New grant flow for OAuth2 with client credentials
2025-04-16 06:17:26 +10:00
Matthias Kuhn
42e044ca4f Sync o2 2024-12-10 11:48:09 +01:00
Nyall Dawson
4ef0d081ae Resync o2 library 2024-11-27 11:47:02 +10:00
Nyall Dawson
c8b47e6322 Resync embedded o2 library to match QGIS fork
As of 6d80f36a9d
2024-11-26 10:18:58 +10:00
Nyall Dawson
5314210e25 Fix warning 2024-11-22 08:07:16 +10:00
Nyall Dawson
520c5cac6e Remove unnecessary o2 examples 2024-11-22 08:07:16 +10:00
Nyall Dawson
806bbb2bfb Re-sync external o2 library
Keep a few downstream patches:

- Oauth2 PKCE initial support (76df15690c5b3e7fd2f97177cd8e743546821f07)
- Find QtKeychain by its cmake target
  (b9e859f0ed1d9d783c0a7b4f28e3d73ac21572f6)
- Allow compiling o2 with Qt6 (6fbe9a4fb3a29bbbd32987153303181d3d4362cd)
- Hide more debug noise (1f91895b1e8d4ca8dd2bb24b0ea35f5bcb425a96)
- If an o2 auth refresh reply contains an error message, then
the refresh was NOT successful
(9af5a531b1a9c4b452b98c0a10387aefa850edee)
- Ensure correct thread locale QgsNetworkAccessManager is used during
o2 requests (9cde65457b3717a74e32277c843a2945eb4f1221)
2024-11-22 08:07:16 +10:00
Even Rouault
02caeb9db7
Header files: remove all mentions of '\since QGIS 2.' 2024-02-18 20:46:01 +01:00
Matthias Kuhn
b9e859f0ed Find QtKeychain by its cmake target 2024-02-11 06:28:51 +10:00
Alessandro Pasotti
76df15690c Oauth2 PKCE initial support 2023-07-31 16:34:06 +02:00
Matthias Kuhn
6fbe9a4fb3 Allow compiling o2 with Qt6 2022-07-20 11:36:53 +10:00
Matthias Kuhn
4171f75b68
Merge pull request #46046 from m-kuhn/o2-static-windows
[o2] fix static linking on windows
2021-11-16 10:06:52 +01:00
Matthias Kuhn
04c9e868d6
Weird char fixup 2021-11-15 21:07:23 +01:00
Matthias Kuhn
4ea78b3a1c [o2] fix static linking on windows
1f9604edbd
2021-11-15 15:38:29 +01:00
plan-do-break-fix
f93b738ac9 typo(fix): corrects common typos in project README files 2021-04-26 19:32:50 +10:00
Nyall Dawson
1f91895b1e Hide more debug noise 2021-01-31 05:42:59 +10:00
Juergen E. Fischer
6b834f405d remove trailing whitespaces from CMakeLists.txt 2021-01-14 10:11:52 +01:00
Denis Rouzaud
eddf6feb45 modernize CMakeLists.txt files 2020-11-12 07:14:46 +10:00
Juergen E. Fischer
765aa9c705 spelling fixes 2020-04-30 08:20:30 +02:00
Nyall Dawson
9af5a531b1 [o2] If an o2 auth refresh reply contains an error message, then
the refresh was NOT successful and we need to unlink the auth so
that a new login will be prompted

Fixes connections to ESRI portal fail after refresh token expires
on the server
2019-09-12 04:12:59 +10:00
Nyall Dawson
9cde65457b Ensure correct thread locale QgsNetworkAccessManager is used during
o2 requests

Otherwise the main thread manager is always used, resulting in
lots of warnings and potential crashes
2019-05-12 15:00:25 +10:00
Nyall Dawson
ba8f8e3f07 [o2] A new refresh_token is not a mandatory part of the response
after requesting a refresh

The server will always return a new access_token, but returning
a new refresh_token is optional
2019-05-12 15:00:25 +10:00
Nyall Dawson
87f5c0c0d4 [o2] Avoid a misleading console error output 2018-10-26 07:20:47 +10:00
Alessandro Pasotti
e5ba558617 Fix error return-std-move
std::move should not be used here because
it prevents RVO (copy elision) and it's
considered an anti-pattern.

To fix the original warning the returned
type must match the declared return
type or copy elision will not be possible
(and the warning will be triggered).
2018-10-11 08:33:18 +02:00
Denis Rouzaud
94a7d9db66
fix local variable will be copied despite being returned by name (#8157)
this is an error with clang 7
note: call 'std::move' explicitly to avoid copying
2018-10-10 05:33:54 -08:00
Matthias Kuhn
e306aaaaef
Fix file mode 2018-09-16 14:18:39 +02:00
Alessandro Pasotti
d54f5b2c2c [oauth2] Add o2 library as external 2018-06-25 11:39:52 +02:00