Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No logoutRequest in request.POST #49

Open
ntbrown opened this issue Oct 28, 2017 · 1 comment
Open

No logoutRequest in request.POST #49

ntbrown opened this issue Oct 28, 2017 · 1 comment

Comments

@ntbrown
Copy link

ntbrown commented Oct 28, 2017

I'm attempting to cause the logout (mycasserver.com/cas/logout) to force sessions to be cleared using the clear_sessions function so that all domains will be logged out of (I created a gateway to log into the other domains automatically if one is logged into).

The new logout function in views.py is:

ProxyGrantingTicket.objects.filter(session_key=request.session.session_key).delete()
SessionTicket.objects.filter(session_key=request.session.session_key).delete()
next_page = next_page or get_redirect_url(request)
clean_sessions(get_cas_client(request=request), request)

where I added the clean_sessions line below the default (original) lines you see above it.

@manelclos
Copy link
Collaborator

@ntbrown did you find a solution to this issue? if not, can you give more details about what you expect to happen and what is happening?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants