Commits

Martin von Löwis committed a01557d

Properly process cancel responses.

  • Participants
  • Parent commits d6b8d69

Comments (0)

Files changed (1)

openid2rp/testapp.py

                 self.end_headers()
                 return                
             if 'returned' in query:
-                if 'openid.identity' not in query:
+                if 'openid.mode' not in query:
                     return self.rp_discovery()
+                if query['openid.mode'][0] == 'cancel':
+                    return self.write('Login failed', 'text/plain')
                 handle = query['openid.assoc_handle'][0]
                 for session in sessions:
                     if session['assoc_handle'] == handle: