Giter Site home page Giter Site logo

Comments (3)

jbittel avatar jbittel commented on July 16, 2024

The philosophy of MamaCAS, and CAS in general, is that the server deals with authentication of the user and does not handle authorization. Ideally, you have at least some control over the behavior of the configured services, and each is responsible for determining what the user can do once authenticated. This appears to match your first example, where each service would check the returned attributes to see if it is authorized for that particular user and abort the login at that point if it is not.

I also just pushed a commit that might be of help in this scenario. It causes the the service URL to be passed to each callback, making it available for customizing the returned attributes. If this provides enough information for you to implement the checks and/or return the information you need, that would allow you to implement your authorization checks outside of MamaCAS and obviate the need to maintain a fork.

Does that help meet your needs?

from django-mama-cas.

k0nG avatar k0nG commented on July 16, 2024

Yeah that makes sense to me. Using attributes to send any information the client service will need to check authorization.

Thanks for your changes in commit: cc54e12#diff-0

Are they on pypi now? Thanks for your speedy reply and help. Its great not having to fork this off for our own needs.

from django-mama-cas.

jbittel avatar jbittel commented on July 16, 2024

No, this change isn't released yet. I'm planning to do an official 1.0.0 release in a few weeks, so it will be included in that.

Thanks!

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.