Skip to content

Accessing river Admin leads to 403 Forbidden Error #12

@rupin

Description

@rupin

Describe the bug
I try and access http:///river-admin

To Reproduce
Steps to reproduce the behavior:

  1. With Django version 2.2
  2. With Python version 3.6.9

Expected behavior
I expected the River Admin to load.

Screenshots
image

*POSTGRESQL 10

Additional context
If permission classes are added in settings, a 403 error is recieved.
I have the following added in my settings.py
REST_FRAMEWORK = {
# Use Django's standard django.contrib.auth permissions,
# or allow read-only access for unauthenticated users.
'DEFAULT_PERMISSION_CLASSES': [
'rest_framework.permissions.IsAuthenticated'
],
'DEFAULT_AUTHENTICATION_CLASSES': [
'rest_framework.authentication.TokenAuthentication', # <-- And here
'rest_framework.authentication.SessionAuthentication',
#'rest_framework.authentication.BasicAuthentication'
'rest_framework.authentication.BasicAuthentication'

],
'EXCEPTION_HANDLER': 'river_admin.views.exception_handler'

}

When the DEFAULT_PERMISSION_CLASSES are removed, the page loads, but no authentication happens as shown in the screenshot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions