Giter Site home page Giter Site logo

Comments (3)

manelclos avatar manelclos commented on July 16, 2024

And also here:
https://github.com/jbittel/django-mama-cas/blob/master/mama_cas/views.py#L145

from django-mama-cas.

jbittel avatar jbittel commented on July 16, 2024

I've been musing about this feature, and the main reason I'm hesitating is that it diverges from the CAS specification. I'm trying to keep those diversions to a minimum and only where they add specific value.

As SSO typically supports multiple services, the login page is typically accessed from one of those services and then redirects back to that service. I think it's a much less common use case to access the login page directly and then redirect to a landing page. Is there a reason you can't set the landing page up as a CAS service, so if the user isn't logged in they're redirected to the login page and back?

from django-mama-cas.

manelclos avatar manelclos commented on July 16, 2024

Hi Jason,

In our case the login page is the entry point. When you access it we invalidate the current SSO session (we do a single sign out) for security purposes, then call mama_cas LoginView. If the landing page was a service, then the user could be still logged in.

Also, for example after password reset, you're left in the "password link sent" screen (using django-allauth along mama_cas), so the best to do there is to send the user to the login screen, we can't pass the "service" param around.

Since we are already subclassing the LoginView for the logout, we do the redirect afterwards. I see your point. I was just curious about the login screen sitting still there while the user is already logged in and django specifies that LOGIN_REDIRECT_URL is where you end up after login.

from django-mama-cas.

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.