Commit e87208ca authored by ale's avatar ale
Browse files

remove useless base64 decoding from WSGI middleware

parent 8e5900a2
import base64
import cgi
import logging
import sso
......@@ -96,7 +95,7 @@ class SSOMiddleware:
if self.cookie_name in cookies:
ticket = cookies[self.cookie_name].value
tkt = self.verifier.verify(base64.b64decode(ticket))
tkt = self.verifier.verify(ticket)
environ['sso.ok'] = True
environ['REMOTE_USER'] = tkt.user()
return self.next_app(environ, start_response)
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