Skip to content
Snippets Groups Projects
Commit e87208ca authored by ale's avatar ale
Browse files

remove useless base64 decoding from WSGI middleware

parent 8e5900a2
No related branches found
No related tags found
No related merge requests found
import base64
import cgi import cgi
import logging import logging
import sso import sso
...@@ -96,7 +95,7 @@ class SSOMiddleware: ...@@ -96,7 +95,7 @@ class SSOMiddleware:
if self.cookie_name in cookies: if self.cookie_name in cookies:
ticket = cookies[self.cookie_name].value ticket = cookies[self.cookie_name].value
try: try:
tkt = self.verifier.verify(base64.b64decode(ticket)) tkt = self.verifier.verify(ticket)
environ['sso.ok'] = True environ['sso.ok'] = True
environ['REMOTE_USER'] = tkt.user() environ['REMOTE_USER'] = tkt.user()
return self.next_app(environ, start_response) return self.next_app(environ, start_response)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment