Commit e10540c6 authored by Valentin Samir's avatar Valentin Samir
Browse files

[wiki/auth/cas] Messages dans les logs de moinmoin

parent 1d10ca9d
......@@ -138,6 +138,7 @@ class CASAuth(BaseAuth):
if self.ticket_path and request.method == 'POST':
logoutRequest=request.form.get('logoutRequest', None)
if logoutRequest is not None:
sys.stderr.write("Tentative de deconnexion du CAS : %s\n" % logoutRequest)
self.cas.singlesignout(logout_user, logoutRequest)
# anonymous
......@@ -148,6 +149,7 @@ class CASAuth(BaseAuth):
if ticket:
valid, username = self.cas.validate_ticket(url, ticket)
if valid:
sys.stderr.write("Authentifiaction de %s sur le CAS\n" % username)
u = user.User(request, auth_username=username,
# auto create user ?
if self.create_user:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment