--- a/server/src/metaeducation/settings/__init__.py Thu Apr 21 16:26:30 2016 +0200
+++ b/server/src/metaeducation/settings/__init__.py Mon Apr 11 16:47:09 2016 +0200
@@ -52,7 +52,15 @@
'metaeducation.auth.MtdcOAuth2ClientCredentialsAuthentication',
'rest_framework.authentication.BasicAuthentication',
'renkanmanager.auth.CsrfExemptSessionAuthentication'
- )
+ ),
+ 'DEFAULT_PERMISSION_CLASSES': (
+ 'rest_framework.permissions.IsAuthenticatedOrReadOnly',
+ 'metaeducation.permissions.MtdcObjectPermissions',
+ ),
+ 'DEFAULT_PARSER_CLASSES': (
+ 'rest_framework.parsers.JSONParser',
+ ),
+ 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination'
}
MIDDLEWARE_CLASSES = (
@@ -119,6 +127,7 @@
DEFAULT_RENKAN_ICON = ""
RENKAN_USER_DISPLAY_FIELD = 'external_id'
+SOCIALACCOUNT_STORE_TOKENS = False
SOCIALACCOUNT_ADAPTER = "metaeducation.mtdc_oauth_provider.views.MtdcOAuth2Adapter"
SOCIALACCOUNT_PROVIDERS = {
'mtdc': {