Changeset 110
- Timestamp:
- 08/13/07 09:17:43
- Files:
-
- AuthKit/branches/0.4/AuthKit.egg-info/PKG-INFO (modified) (1 diff)
- AuthKit/branches/0.4/AuthKit.egg-info/SOURCES.txt (modified) (4 diffs)
- AuthKit/branches/0.4/AuthKit.egg-info/entry_points.txt (modified) (1 diff)
- AuthKit/branches/0.4/AuthKit.egg-info/requires.txt (modified) (3 diffs)
- AuthKit/branches/0.4/authkit/authenticate/__init__.py (modified) (4 diffs)
- AuthKit/branches/0.4/authkit/authorize.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
AuthKit/branches/0.4/AuthKit.egg-info/PKG-INFO
r73 r110 1 1 Metadata-Version: 1.0 2 2 Name: AuthKit 3 Version: 0.4.0dev-r 713 Version: 0.4.0dev-r98 4 4 Summary: An authentication and authorization toolkit for WSGI applications and frameworks 5 5 Home-page: http://3aims.com/ AuthKit/branches/0.4/AuthKit.egg-info/SOURCES.txt
r73 r110 1 CHANGELOG 2 LICENSE.txt 1 3 README.txt 2 4 setup.cfg … … 22 24 authkit/authenticate/open_id.py 23 25 authkit/authenticate/redirect.py 26 authkit/authenticate/sso/__init__.py 27 authkit/authenticate/sso/api.py 28 authkit/authenticate/sso/cas.py 24 29 authkit/template/__init__.py 25 30 authkit/template/authenticate/setup.cfg … … 30 35 authkit/template/authenticate/ez_setup/__init__.py 31 36 authkit/users/__init__.py 37 authkit/users/postgresql_driver.py 32 38 authkit/users/sqlalchemy_driver.py 33 39 docs/community.txt … … 65 71 docs/scripts/shCore.uncompressed.js 66 72 examples/authorize.py 73 examples/config/digest.py 67 74 examples/docs/basic.py 68 75 examples/docs/digest.py AuthKit/branches/0.4/AuthKit.egg-info/entry_points.txt
r69 r110 8 8 redirect=authkit.authenticate.redirect:make_redirect_handler 9 9 cookie=authkit.authenticate.cookie:make_cookie_handler 10 11 cas = authkit.authenticate.sso.cas:make_cas_handler 10 12 11 13 [paste.paster_create_template] AuthKit/branches/0.4/AuthKit.egg-info/requires.txt
r69 r110 1 Paste>=1. 3,<=1.42 nose>=0.9.2 ,<=1.03 PasteDeploy>=1.1 ,<=1.44 PasteScript>=1.1 ,<=1.41 Paste>=1.4 2 nose>=0.9.2 3 PasteDeploy>=1.1 4 PasteScript>=1.1 5 5 python-openid>=1.1,<=1.2 6 6 python-yadis==1.0.1,<=1.1 7 7 python-urljr==1.0.0,<=1.1 8 8 elementtree>=1.2,<=1.3 9 beaker>=0.6.2,<0.7 9 Beaker>=0.7.3 10 decorator>=2.1.0 10 11 11 12 [pudge] … … 16 17 17 18 [full] 18 Pylons>=0.9. 4,<=1.019 Pylons>=0.9.5,<=1.0 19 20 SQLAlchemy>=0.3.6,<=0.4 20 21 DBUtils>=0.9.2,<=1.0 … … 25 26 26 27 [pylons] 27 Pylons>=0.9. 4,<=1.028 Pylons>=0.9.5,<=1.0 28 29 29 30 [mysql] AuthKit/branches/0.4/authkit/authenticate/__init__.py
r87 r110 94 94 how to create your own ``Users`` objects. 95 95 """ 96 log.debug("valid_password called. username: %s", username) 96 97 if not environ.has_key('authkit.users'): 97 98 raise no_authkit_users_in_environ … … 121 122 Only required if you intend to use HTTP digest authentication. 122 123 """ 124 log.debug( 125 "digest_password called. username: %s, realm: %s", username, realm 126 ) 123 127 if not environ.has_key('authkit.users'): 124 128 raise no_authkit_users_in_environ … … 158 162 users = user_object(user_conf['data']) 159 163 app = AddToEnviron(app, 'authkit.users', users) 160 164 log.debug("authkit.users added to environ") 161 165 if format == 'basic': 162 166 function = valid_password 167 log.debug("valid_password chosen %r", function) 163 168 elif format == 'digest': 169 log.debug("digest_password chosen %r", function) 164 170 function = digest_password 165 171 else: … … 347 353 app = HTTPExceptionHandler(app) 348 354 355 app = AddToEnviron(app, 'authkit.authenticate', True) 349 356 # Configure the config files 350 357 AuthKit/branches/0.4/authkit/authorize.py
r68 r110 25 25 26 26 from paste import httpexceptions 27 #from authkit.permissions import NotAuthenticatedError, NotAuthorizedError28 27 29 28 class PermissionSetupError(Exception): … … 94 93 95 94 def __call__(self, environ, start_response): 95 if not environ.has_key('authkit.authenticate'): 96 raise Exception( 97 "Authenticate middleware not present" 98 ) 96 99 # Could also check that status and response haven't changed here? 97 100 try:
