Comments (9)
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.
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.
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.
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.
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.
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.
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.
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.
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)
- /cas/validate returns no
- Signup and password reset? HOT 2
- ImportError: cannot import name 'python_2_unicode_compatible' HOT 1
- build pip package please HOT 4
- django 3.1.5 - cannot import name 'python_2_unicode_compatible' HOT 2
- django-mama-cas and python-social-auth HOT 2
- Allow service backends to have access to the current request or user
- Allow services to decide if a request should be warned (`warn_user`)
- Django 4.2 support HOT 1
- New release HOT 1
- Custom Username CAS
- Single logout should raise on request failure HOT 1
- Single logout breaks with multiple sessions HOT 2
- Why is this code in models. py not executed when logout? HOT 3
- About the βexpireβ of ST Model HOT 1
- Question: Adding Two-Factor Auth HOT 1
- Still active? HOT 9
- Do MAMA_CAS_USER_ATTRIBUTES and MAMA_CAS_PROFILE_ATTRIBUTES work? HOT 4
- Sign on without ticket generation HOT 10
- Single Sign Out sometime can't work normally with error "Connection reset by peer" HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-mama-cas.