Skip to content

[Bug] Components cannot trigger model methods listening to any valid event due to the use of the LoginRequiredMiddleware middleware: #749

@marcosferreira

Description

@marcosferreira

Bug Description

Actions
Components cannot trigger model methods listening to any valid event due to the use of the LoginRequiredMiddleware middleware. A token error occurs in the browser, but the Django console displays a redirect.

If the user is logged in, the error does not occur.

However, I couldn't find a way in the django-unicorn documentation to make the component fully accessible to public URLs, as explained in the use of LoginRequiredMiddleware in the official Django documentation.

Expected behaviour

The expectation is that it will be possible to explicitly allow, through code, the use of Django-Unicorn Actions using LoginRequiredMiddleware on public URLs.

Screenshots / Screenrecords

Image Image

Steps to reproduce

No response

What browsers are you seeing the problem on?

Microsoft Edge

👀 Have you checked for similar open issues?

  • I checked and didn't find similar issue

Code of Conduct

  • I agree to follow this project's Code of Conduct

Are you willing to work on this issue ?

No, someone else can work on it

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions