Code Monkey home page Code Monkey logo

Comments (3)

sabipu avatar sabipu commented on July 20, 2024

Following this issue. I would have thought there would be a seamless integration as allauth_2fa is built on top of all_auth. Can authors of the plugin please have a look at this a suggest?

from django-allauth-2fa.

9mido avatar 9mido commented on July 20, 2024

Maybe these could help someone make a PR:

https://stackoverflow.com/questions/58357047/how-to-properly-redirect-from-one-app-to-another-app-in-django

https://stackoverflow.com/questions/31334460/urls-py-redirect-the-page-to-another-app

https://stackoverflow.com/questions/53430519/django-redirect-from-one-app-to-another-apps-page-django

https://stackoverflow.com/questions/28554335/django-redirect-to-a-view-outside-the-app

@falc410 Can you share with us your adapter method where you call get_login_redirect_url?

I see in the django-allauth views.py file has multiple redirect_field_name fields. It seems like the LoginView class of django-allauth may need to change or django-allauth-2fa may need to change to address this (not sure).

When you say you are using BaseRequire2FAMiddleware, is this problem only occurring when using BaseRequire2FAMiddleware as opposed to not using it? Are you doing what the docs say in regards to this BaseRequire2FAMiddleware middleware or are you doing something else? Can you share?

https://django-allauth-2fa.readthedocs.io/en/latest/advanced/#forcing-a-user-to-use-2fa

Correct me if I am wrong, but isn't this issue the same as what PR #99 claims to solve?

Couldn't we use request.GET.next to get what the next value is to ensure that it gets redirected there?

from django-allauth-2fa.

akx avatar akx commented on July 20, 2024

This should have been fixed by #131.

from django-allauth-2fa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.