Coder Social home page Coder Social logo

nitron / django-cas-provider Goto Github PK

View Code? Open in Web Editor NEW
59.0 59.0 43.0 115 KB

Central Authentication Service Provider for Django

Home Page: http://nitron.org/projects/django-cas-provider/

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%

django-cas-provider's People

Contributors

andrelouiscaron avatar mstepniowski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

django-cas-provider's Issues

Prompting for authorization (security issue)

Currently, the only interaction django-cas-provider has with the user is to prompt for credentials. If a user accessed two services A and B and logs in to grant a service ticket for A, then B can silently get a service ticket. If this process is fast enough, the user may log in to application B without even realizing it.

This, the CAS provider should prompt for authorization for granting service tickets, especially after the single-sign-on session is already opened (e.g. the user is already logged in). This behavior could optionally be disabled by the user.

Does not use LOGIN_REDIRECT_URL setting.

I was quite surprised to see that my LOGIN_REDIRECT_URL is consistently ignored and I'm always redirected to /account/ after login. It seems that the cas_provider.views.login view uses an extra parameter with the URL to redirect to.

This should be changed to use the LOGIN_REDIRECT_URL setting for two reasons. First, the replacement login view should behave as much as possible like the one in django.contrib.auth. Second, I cannot use the include(cas_provider.urls) shortcut in my project's urls.py if I plan to use the success_redirect parameter.

Reverse order of "\r\n" in the validate method

I believe that you have reversed the order of CRLF characters in the "validate" method. It should be "\r\n".
It makes e.g. Hudson's (pardon, I mean Jenkins's :-) ) CAS plugin ignore the username.

Security issue in validate

Fairly sure that 'validate' should check that the ticket and service parameters match. Currently if once service gets a service ticket, it can then provide that ticket to another service and impersonate the user.

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.