REST_FRAMEWORK = {'DEFAULT_PERMISSION_CLASSES': [
    'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly',
    'rest_framework.permissions.IsAuthenticated'],
    'DEFAULT_AUTHENTICATION_CLASSES': [
    'oauth2_provider.ext.rest_framework.OAuth2Authentication',
    'rest_framework.authentication.SessionAuthentication']}
Django restframework browsable api login with ouath