Private
Public Access
1
0

Merge branch 'release/v13.63'

This commit is contained in:
Sander Roosendaal
2020-07-18 17:17:35 +02:00
3 changed files with 12 additions and 6 deletions

4
.gitignore vendored
View File

@@ -1,7 +1,7 @@
# cache
/django_cache/
testcert.crt
testcert.key
*.crt
*.key
garminlog.log
strava_webhooks.log

View File

@@ -78,6 +78,7 @@ class StandardCollectionSerializer(serializers.ModelSerializer):
model = StandardCollection
fields = (
'id',
'name',
'notes',
'active',
'standards'

View File

@@ -42,9 +42,10 @@ TESTING = False
ALLOWED_HOSTS = CFG['allowed_hosts']
OAUTH2_PROVIDER_ACCESS_TOKEN_MODEL = 'oauth2_provider.AccessToken'
OAUTH2_PROVIDER_APPLICATION_MODEL = 'oauth2_provider.Application'
OAUTH2_PROVIDER_REFRESH_TOKEN_MODEL = 'oauth2_provider.RefreshToken'
#OAUTH2_PROVIDER_ACCESS_TOKEN_MODEL = 'oauth2_provider.AccessToken'
#OAUTH2_PROVIDER_APPLICATION_MODEL = 'oauth2_provider.Application'
#OAUTH2_PROVIDER_REFRESH_TOKEN_MODEL = 'oauth2_provider.RefreshToken'
#OAUTH2_PROVIDER_ACCESS_TOKEN_EXPIRE_SECONDS = 3600
# Application definition
@@ -411,7 +412,11 @@ OAUTH2_PROVIDER = {
'SCOPES': {'read': 'Read scope', 'write': 'Write scope', 'groups': 'Access to your groups'},
'ALLOWED_REDIRECT_URI_SCHEMES': ["http",
"https",
"rowingcoachexport"]
"rowingcoachexport"],
'ACCESS_TOKEN_MODEL': 'oauth2_provider.AccessToken',
'APPLICATION_MODEL': 'oauth2_provider.Application',
'REFRESH_TOKEN_MODEL': 'oauth2_provider.RefreshToken',
'ACCESS_TOKEN_EXPIRE_SECONDS': 3600,
# 'OAUTH2_BACKEND_CLASS': 'oauth2_provider.oauth2_backends.JSONOAuthLibCore'
}