2007-11-17 | paulb | raw annotate files changeset graph | [project @ 2007-11-17 00:30:16 by paulb] Added a POST-based form to the success messages which permits the "HTML FORM Redirection" mode of indirect communication described in the "OpenID 2.0 Authentication" draft. |
1 #!/usr/bin/env python 2 3 from WebStack.Adapters.Django import deploy 4 from WebStack.Resources.Login import LoginResource, LoginAuthenticator 5 6 resource = LoginResource( 7 LoginAuthenticator( 8 secret_key="horses", 9 credentials=( 10 ("badger", "abc"), 11 ("vole", "xyz"), 12 ) 13 ), 14 use_redirect=0 15 ) 16 17 login = deploy(resource, handle_errors=0) 18 19 # vim: tabstop=4 expandtab shiftwidth=4