Giter VIP home page Giter VIP logo

Comments (3)

jbittel avatar jbittel commented on September 24, 2024

Thanks for catching that validation response mismatch! I've pushed up c29604d to resolve that issue.

Regarding the race condition, I'm not immediately clear on what the problem might be. I looked through the django-cas source you pointed out and didn't notice any apparent issues. The request that MamaCAS makes is a synchronous request, so validate_callback should already be waiting until the request succeeds or fails. I don't believe the core requests library even provides asynchronous requests any longer.

I noticed in your example code above that when you added in the sleep delay, the lookup field changed from pgtIou to tgt (I'm assuming to compensate for the PGT/PGTIOU bug). Did you test with just that one change, without the sleep delay as well?

Thanks!

from django-mama-cas.

farridav avatar farridav commented on September 24, 2024

Thanks for getting back to me on this, I have gotten rid of the sleep hack and the pgt lookup, and with the updated mama_cas code it all works fine πŸ˜„ .. I will mark this issue as resolved. your right about the async stuff, there must be something else going on, but its no longer a problem for me :)

I'm now using the master branch of my django-cas fork and everything seems to work.. now I've just got to get my head round granting and revoking per service..

Thanks again

from django-mama-cas.

jbittel avatar jbittel commented on September 24, 2024

Great! I'm glad that's working for you now. If it's helpful, I just released 0.8.1 that contains this fix, if you'd rather use a more official release version.

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.