Commit Graph

45 Commits

Author SHA1 Message Date
Alejandro Martinez
7ca84ecd3e Withings Authorization - Use https for callback URL
Fixes #4065
2021-11-09 16:39:38 -03:00
grauser
fcad1ed196 RideWithGPS : Correct/implement API v2
Fix #3371
2021-08-11 22:20:23 +02:00
Ale Martinez
46be903027 Set HTTP User Agent in Web chart and OAuth dialog
To avoid Google authentication problems.
Fixes #3876
2021-04-26 11:58:42 -03:00
Michel Dagenais
921e81fad8 Insure that Web pages are deleted before the Web Profile to avoir error messages (#3845)
When exiting, GC complains that the Web Profile is released before Web pages that refer to it with the message: "Release of profile requested but WebEnginePage still not deleted. Expect troubles !".
The Web pages are now released explicitly in the destructor to insure that they are freed earlier than the Profile.
Fixes #3844
2021-03-13 17:16:22 -03:00
grauser
c701c8a510 RideWithGPS : Use API version 2 2020-07-09 17:13:11 +02:00
Alejandro Martinez
f51a6a6cb1 Remove Conditional Compilation for Qt < 5.9 (#3464)
This is a clean up to remove conditional compilation for all Qt versions
older than the last known to work: Qt 5.9 with Qt WebEngine and Qt Charts.
Includes an update note to INSTALL documents.
2020-05-27 09:26:25 -03:00
Mark Liversedge
f4fcc93693 Deprecate WebKit Support
.. The NOWEBKIT define is no longer required to build.
   We now only support building with Chromium QWebEngine
2020-05-25 09:00:36 +01:00
Ale Martinez
bef37ea49c Strava OAuth Update - Handle Refresh Token
Complements ab18468a98
Fixes #3199
2019-11-15 18:27:09 -03:00
Ale Martinez
ab18468a98 Strava OAuth Update
According to https://developers.strava.com/docs/oauth-updates
Fixes #3199
2019-11-04 11:47:24 -03:00
Quentin Heath
35db3a6f03 fix translations
replace some mistaken "Today's Plan" by the appropriate "Polar Flow"
2019-07-01 09:42:29 +09:00
Joern
25f13f4683 Re-Introduce connection to Withings
... remove Nokia from Screens
... access Withings APIs
2019-01-12 19:09:27 +01:00
Mark Liversedge
9e21ececff Fix OAuthDialog 'code' parse url
.. the code to parse the redirect url and exract
   the query item 'code' was fragile -- and got
   broken when Strava added a new query item to
   the returned URL.

.. we now use QUrlQuery to extract in a more
   robust and future proof way

Fixes #2879
2018-05-31 21:13:24 +01:00
Mark Liversedge
ea8df0e3ec Calendar Cloud Services Configuration
.. configuring calendar access was lost when
   refactoring the cloud account config.

.. we use the cloud service framework for the
   config steps (Oauth/user+pass etc).

.. existing code for interacting with the
   service in CalendarDownload.cpp and
   CalDAV.cpp is left untouched for now since
   it isn't used in many places.
2018-04-10 14:04:25 +01:00
grauser
a57766fdcd Withings/Nokia use OAth2 for authorisation 2018-03-07 00:08:22 +01:00
grauser
85cad4d2e0 Withings/Nokia : Reset GC_NOKIA_REFRESH_TOKEN 2018-03-05 21:31:25 +01:00
Joern
752fdebbce Update Translation DE
-- Update of texts
-- fix some minor "translatebility" issues
-- change service naming "Withings" to "Nokia Health (Withings)"
2018-02-11 18:01:11 +01:00
grauser
5b12503824 Cloud : Add Xert as a new service
First : Upload only
2017-12-23 12:15:05 +01:00
Mark Liversedge
0910bb7aa6 University of Kent Support 1 of 3
.. just add as a Google Drive service

.. need to do upload dialog and file formats as subsequent
   commits.

NOTE: this is a variant of Google Drive, not just subclassed
      at this point. We may simplify this later to avoid two
      classes that need bug fixes / changes as the Google API
      changes over time.
2017-09-21 17:56:57 +01:00
Mark Liversedge
2fc93992e3 Migrate to Dropbox API v2 - Part 1 of 2
.. updates to use OAuth2 endpoints
2017-05-25 11:24:52 +01:00
Joern
502688ed56 CloudService - Fix Translation related problem (Part 1 of 2)
... rename "name" to "id"
... remove translatebility of the "id" text from all service
2017-05-13 17:59:14 +02:00
Mark Liversedge
3fd026b392 Cloud Refactor - OAuthDialog cleanup
.. remove twitter and google calendar

.. add comments to show where the basic OAUTH steps are
   processed for implementors of future services

.. tidy up code formatting to be consistent with GC style
2017-04-24 20:06:51 +01:00
Mark Liversedge
7e6954ec20 SportTracks OAuth Fixup
.. set raw headers when I shouldn't.

.. added when trying to resolve issues earlier and didnt
   remove them when they had no effect.

.. SportTracks OAuth config now works.
2017-04-12 08:00:18 +01:00
Mark Liversedge
5613cd3db7 SportTracks.mobi - Part 1 of 4
.. CloudService and OAuthDialog.

.. Still needs:
   2) readdir
   3) readFile
   4) writeFile
2017-04-11 17:20:11 +01:00
Mark Liversedge
43c772ff9d PolarFlow Cloud Service - 3 of 6
.. configuration dialog complete

.. will always attempt to bind user to service, if
   that has already occurred it fails, so we always
   ignore the response.
2017-04-10 15:00:53 +01:00
Mark Liversedge
1601fe3e9a Need QT5.6 for QWebEngineCookieStore 2017-04-09 19:38:14 +01:00
Mark Liversedge
9fcc66dad1 OAuthDialog - Clear Cookies
.. since login screens often examine cookies to 'auto' login
   which is unhelpful when setting up accounts.
2017-04-09 18:56:20 +01:00
Mark Liversedge
deaa5d9972 Hi-DPI Support - OAuthDialog Scaling
.. the QWebView embedded in OAuthDialog needs to be zoomed
   so you can see the fonts.

.. the QT recomendation is to set the application wide
   scaling (!) to scale QWebEngine on hi-dpi screens obvs
   thats a really shit solution we ignore.
2017-04-08 21:19:58 +01:00
Mark Liversedge
92867e2210 PolarFlow Cloud Service - 2 of 6
.. OAuthDialog updated to get authorization token
2017-04-08 17:41:50 +01:00
Mark Liversedge
9343cbb4ae Cloud Refactor - CloudService list/select Athlete
.. add list/select athlete to the service semantics
.. implemented exemplar with Today's Plan service.
2017-04-02 18:33:57 +01:00
Mark Liversedge
2c1197a653 Cloud Refactor - Withings in AddCloudWizard
.. a stub cloud service to enable the configuration
   addcloudwizard to set it up.
2017-04-02 09:15:26 +01:00
Mark Liversedge
6e42e594c5 Cloud Refactor - AddCloudWizard uses OAuthDialog
.. AddCloudWizard is now feature complete.

.. HOWEVER, OAuthDialog is written to support AddCloudWizard
   *and* Pages.cpp:CredentialsPage -- this is a hack whilst we
   convert all services to use CloudService (Withings/Calendar)

.. HOWEVER, Google Drive Scope and Today's Plan Athlete selection
   need to be handled in a generic way too.
2017-04-01 21:28:23 +01:00
Mark Liversedge
006c06c085 Cloud Refactor - CloudService Configuration Injection
.. configuration is injected into the CloudService by the
   CloudServiceFactory.

.. next steps are to include this into the AddCloudWizard
   and OAuthDialog and ConfigDialog's Pages code.

.. cloud services should still be working fully after this
   commit -- so long as config is performed via Options and
   not via the AddCloudWizard (although its close to complete).
2017-04-01 17:56:27 +01:00
grauser
4197a72a67 Today's Plan : Coach can access there own data... 2017-03-19 17:20:25 +01:00
grauser
e65ef941bc Withings : Use new API 2017-03-02 07:34:24 +01:00
grauser
c3b4f2057d Today's Plan : Select athlete 2017-02-05 23:29:15 +01:00
Mark Liversedge
2d7d52a389 Todays Plan Oauth can have private keys
.. let the user configure them in options.
2017-01-21 10:18:24 +00:00
Mark Liversedge
5a9db2ebb8 Today's Plan URL configuration
.. so you can switch between whats.todaysplan and staging or
   any private tenant you might have.
2017-01-12 16:35:05 +00:00
grauser
cd1d30c8a5 Today's Plan : stop using staging 2016-12-31 14:22:01 +01:00
grauser
63f388b4e1 Today's Plan integration (first part : auth + upload) 2016-12-30 11:18:52 +01:00
Mark Liversedge
4adab3f9d9 Ignore SSL errors during reply processing
.. in OAuth dialog
2016-12-24 13:23:48 +00:00
Mark Liversedge
c46a13ed65 OAUTH ignore handshake "errors"
.. when authorising via SSL we may get handshake "errors" as
   the protocol is established, this seems to occur with
   openssl on Sierra and Mavericks.

.. since the request is completed then some form of protocol was
   established so we ignore it in this instance.

.. even if there is a problem its likely the tokens will be blank
   and that will trigger another error, so fairly safe to ignore
2016-12-24 10:40:24 +00:00
Mark Liversedge
27f77a1847 Google Drive Auth - more diags
.. auth sometimes fails, give better reasons
2016-12-24 10:06:29 +00:00
Mark Liversedge
b5d640c46a Qt 5.6 NOWEBKIT fixups for OSX
.. OAuthDialog changes had a logic error in the
   conditionals for WebKit v WebEngine
2016-03-20 15:10:28 +00:00
Mark Liversedge
03f5a18735 Qt 5.6 Support - NOWEBKIT
.. remove Webkit dependency if the user adds the following
   to their gcconfig.pri: DEFINES += NOWEBKIT

.. at present the build disables:
   * Bing map
   * Google map
   * Ride Window
   * Street View

.. since QT 5.6 enables c++11 dependent libs may no longer
   compile with c++11 enabled (e.g. qwtplot3d)

.. this is experimental and in place to enable further work
   on deprecating the webkit dependency in GoldenCheetah v4.0
2016-03-20 13:25:00 +00:00
Mark Liversedge
4b5201c4c5 Restructure source directory
Introducing a directory structure to make it a bit less
daunting for new developers and perhaps even old hands.

The main folders all start with an upper character, so src
files are now located in;

* Core - Core data structures
* Gui - Main GUI elements
* Metrics - Models and Metrics
* FileIO - Device and File I/O
* Charts - All the chart types
* Cloud - Working with Web Resources
* Train - Anything Train View specific
* ANT - Our ANT+ Stack
* Resources - Images, Translations, Web etc

Apologies to anyone who needs to merge across this update.
2016-02-25 14:51:53 +00:00