2008-05-01 | paulb | file changeset files shortlog | [project @ 2008-05-01 21:46:24 by paulb] Added OpenID examples, although the login example will not yet work with CGI until a persistent association store is implemented. |
paulb@548 | 1 | #!/usr/bin/env python |
paulb@548 | 2 | |
paulb@558 | 3 | from WebStack.Adapters.Django import deploy |
paulb@548 | 4 | from Auth import AuthResource, AuthAuthenticator |
paulb@548 | 5 | |
paulb@548 | 6 | resource = AuthResource() |
paulb@548 | 7 | authenticator = AuthAuthenticator() |
paulb@548 | 8 | |
paulb@718 | 9 | auth = deploy(resource, authenticator=authenticator, handle_errors=0) |
paulb@548 | 10 | |
paulb@548 | 11 | # vim: tabstop=4 expandtab shiftwidth=4 |