Private
Public Access
1
0

API seems to work ok

This commit is contained in:
Sander Roosendaal
2016-12-22 12:21:04 +01:00
parent 2701d330ce
commit 24de5c681d
3 changed files with 18 additions and 7 deletions

View File

@@ -200,6 +200,7 @@ MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
# user authentication
LOGIN_REDIRECT_URL = '/rowers/list-workouts/'
LOGIN_URL = '/login/'
LOGOUT_URL = '/logout/'
# Concept 2
C2_CLIENT_ID = "bgTBbmjSyn8wbJb0JEdlYjDUfSZFAPQSzJV8YDwH"
@@ -260,7 +261,8 @@ GMAPIKEY = "AIzaSyAgu1w9QSthaGPMLp8y9JedPoMc9sfEgJ8"
OAUTH2_PROVIDER = {
# this is the list of available scopes
'SCOPES': {'read': 'Read scope', 'write': 'Write scope', 'groups': 'Access to your groups'}
'SCOPES': {'read': 'Read scope', 'write': 'Write scope', 'groups': 'Access to your groups'},
'OAUTH2_BACKEND_CLASS': 'oauth2_provider.oauth2_backends.JSONOAuthLibCore'
}
@@ -280,6 +282,15 @@ REST_FRAMEWORK = {
'PAGE_SIZE': 20,
}
SWAGGER_SETTINGS = {
'SECURITY_DEFINITION': {
'basic': {
'type':'basic'
}
},
'SHOW_REQUEST_HEADERS': True,
}
# Analytics
CLICKY_SITE_ID = '101011008'