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): ...@@ -138,6 +138,7 @@ class CASAuth(BaseAuth):
if self.ticket_path and request.method == 'POST': if self.ticket_path and request.method == 'POST':
logoutRequest=request.form.get('logoutRequest', None) logoutRequest=request.form.get('logoutRequest', None)
if logoutRequest is not None: if logoutRequest is not None:
sys.stderr.write("Tentative de deconnexion du CAS : %s\n" % logoutRequest)
self.cas.singlesignout(logout_user, logoutRequest) self.cas.singlesignout(logout_user, logoutRequest)
# anonymous # anonymous
...@@ -148,6 +149,7 @@ class CASAuth(BaseAuth): ...@@ -148,6 +149,7 @@ class CASAuth(BaseAuth):
if ticket: if ticket:
valid, username = self.cas.validate_ticket(url, ticket) valid, username = self.cas.validate_ticket(url, ticket)
if valid: if valid:
sys.stderr.write("Authentifiaction de %s sur le CAS\n" % username)
u = user.User(request, auth_username=username, auth_method=self.name) u = user.User(request, auth_username=username, auth_method=self.name)
# auto create user ? # auto create user ?
if self.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