From 6ee13e5374876fe4365b3906d659b081a71a4f23 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Fri, 22 Sep 2017 11:13:27 +0200 Subject: [PATCH] added rowingcoachexport API support --- rowers/templates/developers.html | 4 ++++ rowsandall_app/settings.py | 3 +++ 2 files changed, 7 insertions(+) diff --git a/rowers/templates/developers.html b/rowers/templates/developers.html index b81bb596..117a4547 100644 --- a/rowers/templates/developers.html +++ b/rowers/templates/developers.html @@ -126,6 +126,10 @@ expires, use the refresh token to refresh it.

+

The redirect URI for user authentication has to be https. + Developers of iOS or Android apps should contact me directly if + this doesn't work for them. I can add exceptions.

+

The POST call must have content-type: x-www-form-urlencoded. I set it this way to support the handy testing utility mentioned belower. However, diff --git a/rowsandall_app/settings.py b/rowsandall_app/settings.py index 6a7a614a..4b8ef550 100644 --- a/rowsandall_app/settings.py +++ b/rowsandall_app/settings.py @@ -324,6 +324,9 @@ GMAPIKEY = CFG['gmapikey'] OAUTH2_PROVIDER = { # this is the list of available scopes 'SCOPES': {'read': 'Read scope', 'write': 'Write scope', 'groups': 'Access to your groups'}, + 'ALLOWED_REDIRECT_URI_SCHEMES': ["http", + "https", + "rowingcoachexport"] # 'OAUTH2_BACKEND_CLASS': 'oauth2_provider.oauth2_backends.JSONOAuthLibCore' }