Mercurial > hg > bitsyauth
comparison example/persona.py @ 23:21124b238feb
stub persona/browserid example
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Thu, 26 Dec 2013 20:04:08 -0800 |
| parents | |
| children | bdb005ae848b |
comparison
equal
deleted
inserted
replaced
| 22:9aa73d2d5aa8 | 23:21124b238feb |
|---|---|
| 1 #!/usr/bin/env python | |
| 2 | |
| 3 import optparse | |
| 4 import os | |
| 5 import sys | |
| 6 | |
| 7 """ | |
| 8 test Mozilla persona auth | |
| 9 | |
| 10 https://login.persona.org/about | |
| 11 """ | |
| 12 | |
| 13 here = os.path.dirname(os.path.realpath(__file__)) | |
| 14 page = os.path.join(here, 'persona.html') | |
| 15 | |
| 16 def main(args=sys.argv[1:]): | |
| 17 | |
| 18 usage = '%prog [options]' | |
| 19 parser = optparse.OptionParser(usage=usage, description=__doc__) | |
| 20 parser | |
| 21 options, args = parser.parse_args(args) | |
| 22 | |
| 23 if __name__ == '__main__': | |
| 24 main() |
