mama_cas/cas.py
def logout_user(request):
    """End a single sign-on session for the current user."""
    logger.debug("Logout request received for %s" % request.user)
    if request.user.is_authenticated:
        ServiceTicket.objects.consume_tickets(request.user)
        ProxyTicket.objects.consume_tickets(request.user)
        ProxyGrantingTicket.objects.consume_tickets(request.user)

        ServiceTicket.objects.request_sign_out(request.user)

        logger.info("Single sign-on session ended for %s" % request.user)
        logout(request)
        messages.success(request, _('You have been successfully logged out'))
End a single sign-on session for the current user.
End a single sign-on session for the current user.
End a single sign - on session for the current user .
def logout_user(request):
    logger.debug("Logout request received for %s" % request.user)
    if request.user.is_authenticated:
        ServiceTicket.objects.consume_tickets(request.user)
        ProxyTicket.objects.consume_tickets(request.user)
        ProxyGrantingTicket.objects.consume_tickets(request.user)
        ServiceTicket.objects.request_sign_out(request.user)
        logger.info("Single sign-on session ended for %s" % request.user)
        logout(request)
        messages.success(request, _('You have been successfully logged out'))
def logout_user ( request ) : logger . debug ( "Logout request received for %s" % request . user ) if request . user . is_authenticated : ServiceTicket . objects . consume_tickets ( request . user ) ProxyTicket . objects . consume_tickets ( request . user ) ProxyGrantingTicket . objects . consume_tickets ( request . user ) ServiceTicket . objects . request_sign_out ( request . user ) logger . info ( "Single sign-on session ended for %s" % request . user ) logout ( request ) messages . success ( request , _ ( 'You have been successfully logged out' ) )
End a single sign-on session for the current user.
End a single sign - on session for the current user .
"""End a single sign-on session for the current user."""
request