2009-11-28 | Paul Boddie | raw annotate files changeset graph | Reverted local identifier changes in order to restore their URL/URI character. Introduced URL-encoding of identity information for non-ASCII characters, due to limitations in HTML 4. Introduced URL-encoding of the association handle since python-openid (2.0.2) does not like being presented with a handle containing non-ASCII characters. |
1 #!/usr/bin/env python 2 3 from WebStack.Adapters.JavaServlet import deploy 4 from WebStack.Resources.Login import LoginResource, LoginAuthenticator 5 6 # NOTE: Not sure if the resource should be maintained in a resource pool. 7 8 resource = LoginResource( 9 LoginAuthenticator( 10 secret_key="horses", 11 credentials=( 12 ("badger", "abc"), 13 ("vole", "xyz"), 14 ) 15 ), 16 use_redirect=0 17 ) 18 19 LoginApp = deploy(resource, handle_errors=0) 20 21 # vim: tabstop=4 expandtab shiftwidth=4