Skip to content

Apply login_not_required decorator to all webhook views #443

@Zerotask

Description

@Zerotask

When you use Django's LoginRequiredMiddleware, all URLs are private by default and you have to add a login_not_required_middleware to make an URL public. Therefore webhook views like BrevoBaseWebhookView should use the decorator
@method_decorator(login_not_required, name="dispatch")

Django and some other 3rd party libraries already adding this decorator to specific views like LoginView or PasswordResetView

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions