Changeset 158
- Timestamp:
- 11/08/08 00:11:25
- Files:
-
- AuthKit/trunk/AuthKit.egg-info/PKG-INFO (modified) (2 diffs)
- AuthKit/trunk/AuthKit.egg-info/SOURCES.txt (modified) (1 diff)
- AuthKit/trunk/AuthKit.egg-info/requires.txt (modified) (1 diff)
- AuthKit/trunk/CHANGELOG.txt (modified) (1 diff)
- AuthKit/trunk/authkit/authenticate/cookie.py (modified) (1 diff)
- AuthKit/trunk/authkit/authenticate/multi.py (modified) (4 diffs)
- AuthKit/trunk/authkit/authorize/wsgi_adaptors.py (modified) (3 diffs)
- AuthKit/trunk/setup.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
AuthKit/trunk/AuthKit.egg-info/PKG-INFO
r155 r158 1 1 Metadata-Version: 1.0 2 2 Name: AuthKit 3 Version: 0.4. 1dev-r1543 Version: 0.4.2dev-r157 4 4 Summary: An authentication and authorization toolkit for WSGI applications and frameworks 5 5 Home-page: http://authkit.org/ … … 51 51 ======= 52 52 53 0.4. 1 (**svn**)53 0.4.2 54 54 55 * Added support for WebOb HTTPExceptions to remove a deprecation warning in 56 Pylons 0.9.7 57 * Fixed a missing md5 import in the cookie module 58 * Applied patch in ticket #52 59 60 0.4.1 61 62 * Added ``setup.fakeuser`` option which automatically sets the REMOTE_USER 63 so that it appears someone has signed in. Useful with setup.enable = False 55 64 ******************************************************************************** 56 * The `` authkit.setup.enable = false`` option now also disables authorisation*65 * The ``setup.enable = false`` option now also disables authorisation * 57 66 * checks (reported by Rick Flosi) * 58 67 ******************************************************************************** AuthKit/trunk/AuthKit.egg-info/SOURCES.txt
r155 r158 77 77 docs/scripts/shCore.uncompressed.js 78 78 examples/authorize.py 79 examples/authorize2.py 79 80 examples/config/digest.py 80 81 examples/docs/basic.py AuthKit/trunk/AuthKit.egg-info/requires.txt
r151 r158 7 7 Beaker>=0.7.3 8 8 decorator>=2.1.0 9 WebOb>=0.9.3 9 10 10 11 [pudge] AuthKit/trunk/CHANGELOG.txt
r157 r158 1 1 Changes 2 2 ======= 3 4 0.4.2 5 6 * Added support for WebOb HTTPExceptions to remove a deprecation warning in 7 Pylons 0.9.7 8 * Fixed a missing md5 import in the cookie module 9 * Applied patch in ticket #52 3 10 4 11 0.4.1 AuthKit/trunk/authkit/authenticate/cookie.py
r149 r158 81 81 from paste.deploy.converters import asbool 82 82 from paste.auth.auth_tkt import * 83 import md5 83 84 import os 84 85 import time AuthKit/trunk/authkit/authenticate/multi.py
r155 r158 41 41 # XXX Shouldn't this be returning the writable to the application? 42 42 writable = start_response( 43 status_[ 0],44 headers_ and headers_[ 0] or [],45 exc_info_[ 0]43 status_[-1], 44 headers_ and headers_[-1] or [], 45 exc_info_[-1] 46 46 ) 47 47 return writable … … 74 74 raise Exception('No headers were returned by the ' 75 75 'application') 76 if checker(environ, status_[ 0], headers_ and headers_[0] or []):76 if checker(environ, status_[-1], headers_ and headers_[-1] or []): 77 77 log.debug( 78 78 "MultiMiddleware self.checker check() returning %r", … … 86 86 if not result_: 87 87 raise Exception('Invalid WSGI response, did the application return an iterable?') 88 if result_[ 0] is None:88 if result_[-1] is None: 89 89 # The check failed and the initial app should be used. 90 90 return app_iter … … 93 93 if hasattr(app_iter, 'close'): 94 94 app_iter.close() 95 return result_[ 0]95 return result_[-1] 96 96 97 97 def status_checker(environ, status, headers): AuthKit/trunk/authkit/authorize/wsgi_adaptors.py
r155 r158 25 25 26 26 from paste import httpexceptions 27 from webob.exc import HTTPForbidden, HTTPUnauthorized 27 28 28 29 class PermissionSetupError(Exception): … … 40 41 pass 41 42 42 class NotAuthenticatedError(PermissionError ):43 class NotAuthenticatedError(PermissionError, HTTPUnauthorized): 43 44 """ 44 45 Raised when a permission check fails because the user is not authenticated. … … 52 53 title = 'Not Authenticated' 53 54 54 class NotAuthorizedError(PermissionError ):55 class NotAuthorizedError(PermissionError, HTTPForbidden): 55 56 """ 56 57 Raised when a permission check fails because the user is not authorized. AuthKit/trunk/setup.py
r151 r158 22 22 ) 23 23 24 version = '0.4. 1'24 version = '0.4.2' 25 25 26 26 setup( … … 41 41 "PasteScript>=1.1", "python-openid>=2.1.1", 42 42 "elementtree>=1.2,<=1.3", "Beaker>=0.7.3", "decorator>=2.1.0", 43 "WebOb>=0.9.3", 43 44 ], 44 45 extras_require = {
