[Python] Django Login Api 'Authentication Credentials were not provided.'

Discussão em 'Python' iniciado por Stack, Fevereiro 13, 2025.

  1. Stack

    Stack Membro Participativo

    I have Django 3.2 application running on AWS. It works fine but after sometime the login API giving 'Authentication Credentials were not provided.'. Even the POST api which required JWT token before, which started working without token.

    REST_FRAMEWORK = {
    'DEFAULT_AUTHENTICATION_CLASSES': (
    'rest_framework_jwt.authentication.JSONWebTokenAuthentication',
    'oauth2_provider.contrib.rest_framework.OAuth2Authentication',
    'rest_framework.authentication.SessionAuthentication'
    ),
    'DEFAULT_PERMISSION_CLASSES': (
    'rest_framework.permissions.IsAuthenticatedOrReadOnly',
    )
    }


    I have checked in app like any session variable I am using globally but don't found that.

    Continue reading...

Compartilhe esta Página