diff example/persona.py @ 36:afeb01315ab6

example/persona.py
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 27 Dec 2013 13:49:48 -0800
parents d95ac066cb62
children
line wrap: on
line diff
--- a/example/persona.py	Fri Dec 27 13:45:10 2013 -0800
+++ b/example/persona.py	Fri Dec 27 13:49:48 2013 -0800
@@ -6,6 +6,7 @@
 https://login.persona.org/about
 """
 
+import browserid
 import optparse
 import os
 import sys
@@ -28,6 +29,8 @@
             body = self.page
         elif method == 'POST':
             content_type = 'text/plain'
+            assertion = request.POST.get('assertion')
+            print ("Assertion: %s" % assertion)
             body = '\n'.join(['%s: %s' % (key, environ[key])
                               for key in sorted(environ.keys())])
         else: