1. Lynn Rees
  2. wsgiauth

Commits

Lynn Rees  committed cb0b148

[svn]

  • Participants
  • Parent commits 191072d
  • Branches wsgiauth

Comments (0)

Files changed (1)

File trunk/wsgiauth/open_id.py

View file
  • Ignore whitespace
         # Handle successful responses
         if info.status == consumer.SUCCESS:            
             # Handle i-names
-            redirecturl = self.tracker[self.getsid(environ)]['url']
+            redirecturl = self.tracker[self.getsid(environ)]['redirect']
             environ['openid.redirect'] = redirecturl
             if info.endpoint.canonicalID:                    
                 return info.endpoint.canonicalID
         # If no session exists for this session ID, create one
         if session is None:
             session = self.tracker[sid] = {}
-            session['url'] = geturl(environ)
+            session['redirect'] = geturl(environ)
         session['id'] = sid        
         return session
 
                 sid = sid_morsel.value
             else:
                 sid = None
+        else:
+            sid = None
         return sid
 
     def setsession(self, environ):