Giter Site home page Giter Site logo

Comments (9)

jbittel avatar jbittel commented on July 16, 2024

I've not been able to reproduce this issue. I set up a project with django-cas-ng and was able to successfully log in and out with no issues.

Are you only experiencing this problem on logout? Are you using the single sign-out configuration? I would double-check your django-cas-ng configuration for your LOGOUT_URL and the associated URL.

from django-mama-cas.

d0nezer0 avatar d0nezer0 commented on July 16, 2024

Yes, only logout problem.

It's the settings of django.conf.settings.MAMA_CAS_ASYNC_CONCURRENCY
Default: 2

If single sign-out is enabled and gevent is installed, this setting limits the concurrency of requests sent for a logout event. If the number of requests reaches this limit, additional requests block until there is room. Setting this value to zero disables this limiting.

I set MAMA_CAS_ASYNC_CONCURRENCY = 9999 or MAMA_CAS_ASYNC_CONCURRENCY = 0
did not help the 504 .

some time logs out frequently, and some times 504.
I installed gevent as well, but I did not use it .
gevent is the reason?

from django-mama-cas.

d0nezer0 avatar d0nezer0 commented on July 16, 2024

Here is my settings:

MAMA_CAS_ALLOW_AUTH_WARN = True
MAMA_CAS_ASYNC_CONCURRENCY = 0/2/99999(I test some numbers)
MAMA_CAS_FOLLOW_LOGOUT_URL = True
MAMA_CAS_TICKET_EXPIRE = 9999
MAMA_CAS_TICKET_RAND_LEN = 32
MAMA_CAS_VALID_SERVICES = ()
MAMA_CAS_ATTRIBUTE_CALLBACKS = ('zgxcw_sso.callbacks.user_token_attributes',)
MAMA_CAS_ENABLE_SINGLE_SIGN_OUT = True

from django-mama-cas.

jbittel avatar jbittel commented on July 16, 2024

Try disabling the single sign-out and see if that makes a difference. That might help narrow down where the problem is occurring.

from django-mama-cas.

d0nezer0 avatar d0nezer0 commented on July 16, 2024

You mean set MAMA_CAS_ENABLE_SINGLE_SIGN_OUT = False.?
I didn't set this at first, and the 504 happened. After I tried the logout settings,

btw, MAMA_CAS_ENABLE_SINGLE_SIGN_OUT is True or False doesn't make any differences?
When it is True, logs out according to the tickets, and the result is the same to False.

from django-mama-cas.

jbittel avatar jbittel commented on July 16, 2024

Hmmm...it's not related to the callbacks then. Is it actually MamaCAS that's returning the timeout, or is it the logout URL that's being redirected to?

from django-mama-cas.

d0nezer0 avatar d0nezer0 commented on July 16, 2024

When timeout happends, firefox shows the sso server logout url keep running, but the user has logout already.
I also thought might be the network issues. Right ?

from django-mama-cas.

jbittel avatar jbittel commented on July 16, 2024

I would agree that it's likely a network or other configuration issue that's causing this problem. I can't replicate it, and the way it's behaving makes me think the issue lies elsewhere.

If you're able to track it down more specifically to MamaCAS, feel free to reopen this ticket. Thanks!

from django-mama-cas.

d0nezer0 avatar d0nezer0 commented on July 16, 2024

Sorry for I forgot to read the message. Last time I set the /etc/hosts file, and the issue disappeared.
I think we do not need to reopen this.
And thanks for your suggestions.

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.