# =====================================================================
# revoke: revoke user's authentication credentials.
#
# Copyright (c) 2002,2003,2007 Carlo Strozzi
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or   
# (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License   
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# =====================================================================

# =====================================================================
#			Local functions
# =====================================================================

# NONE

# =====================================================================
#			Main program
# =====================================================================

csaGetArgs POST DELETE

# For security, log-out the user first, as this has to be done anyway,
# and only afterwards perform further operations.

csaSession.set - 1				# userid
csaSession.set - 2				# login time.

HTTP_AUTHORIZATION = 'Basic Cg=='		# This is *mandatory*

# Log the event.
csaPrintMsg 0015

# Display the logout ok page and quit. As always, for better REST
# compliancy, this should be done through redirection.

csaExit.location $CSA_RPC_URL'?0='$CSA_ID'.showpage&page=goodbye'

# End of program.
