Changeset 139

Show
Ignore:
Timestamp:
11/06/07 00:40:50
Author:
thejimmyg
Message:

Corrected the form middleware to return 200 OK by default so that Safari 3 beta doesn't treat it as an HTTP login atempt

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • AuthKit/trunk/AuthKit.egg-info/PKG-INFO

    r133 r139  
    11Metadata-Version: 1.0 
    22Name: AuthKit 
    3 Version: 0.4.1dev-r132 
     3Version: 0.4.1dev-r133 
    44Summary: An authentication and authorization toolkit for WSGI applications and frameworks 
    55Home-page: http://authkit.org/ 
     
    5656        the users object is set up on each request and recieves an environ 
    5757        argument. 
     58        * OpenID middleware now no longer sets up beaker middleware itself. This 
     59        should now be done manually in the middleware stack. See the example in 
     60        examples/docs/open_id.py 
     61        * OpenID support now upgraded to use 2.0 (from Dalius Dobravolskas) 
    5862        * Fixed encrypt typo with postgres users driver 
     63        * The cookie middleware now has a nouserincookie option which forces the 
     64        middleware to store the username in a Beaker session rather than in plain 
     65        text in the cookie. See examples/docs/form_no_user_in_cookie.py for an 
     66        example of its use. 
     67        * Form authentication method now defaults to 200 OK rather than 401 when 
     68        the sign in form is displayed so that it works with Safari 3 Beta. 
     69        * The cookie middleware Bad Ticket page now also uses 200 OK, also to 
     70        support Safari 3 Beta. 
     71        * The cookie middleware bad ticket now logs to debug rather than error to 
     72        avoid the ``No handlers could be found for logger 
     73        "authkit.authenticate.cookie"`` message you get with a bad cookie if no 
     74        error logging is specifically set up. 
     75        * Added a user management api_version attribute and changed the API so that 
     76        the users object is set up on each request and recieves an environ 
     77        argument. 
     78        * Fixed encrypt typo with postgres users driver 
     79        * Renamed the config_paste option to app_conf in authenticate middleware. If 
     80        you get an "No authkit.setup.method was specified" error when you are sure 
     81        it is specified, this might be why. 
    5982         
    6083        0.4.0 
  • AuthKit/trunk/AuthKit.egg-info/SOURCES.txt

    r128 r139  
    3838authkit/users/__init__.py 
    3939authkit/users/postgresql_driver.py 
     40authkit/users/sqlalchemy_04_driver.py 
    4041authkit/users/sqlalchemy_driver.py 
    4142docs/community.txt 
     
    7778examples/docs/digest.py 
    7879examples/docs/form.py 
     80examples/docs/form_no_user_in_cookie.py 
    7981examples/docs/forward.py 
    8082examples/docs/multi.py 
     
    8486examples/user/database/README.txt 
    8587examples/user/database/app.py 
    86 examples/user/database/create.py 
    87 examples/user/database/model.py 
    8888ez_setup/README.txt 
    8989ez_setup/__init__.py 
    90 test/model.py 
    9190test/test.py 
    9291test/user_file_data.txt 
  • AuthKit/trunk/AuthKit.egg-info/requires.txt

    r110 r139  
    33PasteDeploy>=1.1 
    44PasteScript>=1.1 
    5 python-openid>=1.1,<=1.2 
    6 python-yadis==1.0.1,<=1.1 
    7 python-urljr==1.0.0,<=1.1 
     5python-openid>=2.0.1 
    86elementtree>=1.2,<=1.3 
    97Beaker>=0.7.3 
     
    1311pudge==0.1.3 
    1412buildutils==dev 
    15 pygments==0.7 
     13pygments>=0.7 
    1614TurboKid==0.9.5 
    1715 
    1816[full] 
    1917Pylons>=0.9.5,<=1.0 
    20 SQLAlchemy>=0.3.6,<=0.4 
    21 DBUtils>=0.9.2,<=1.0 
     18SQLAlchemy>=0.4.0,<=0.4.99 
    2219pudge==0.1.3 
    2320buildutils==dev 
    24 pygments==0.7 
     21pygments>=0.7 
    2522TurboKid==0.9.5 
    2623 
    2724[pylons] 
    2825Pylons>=0.9.5,<=1.0 
    29  
    30 [mysql] 
    31 SQLAlchemy>=0.3.2,<=0.4 
    32 DBUtils>=0.9.2,<=1.0 
  • AuthKit/trunk/CHANGELOG.txt

    r133 r139  
    11Changes 
    22======= 
    3  
     3    
    440.4.1 (**svn**) 
    55 
     
    77  the users object is set up on each request and recieves an environ 
    88  argument. 
     9* OpenID middleware now no longer sets up beaker middleware itself. This  
     10  should now be done manually in the middleware stack. See the example in  
     11  examples/docs/open_id.py 
     12* OpenID support now upgraded to use 2.0 (from Dalius Dobravolskas) 
    913* Fixed encrypt typo with postgres users driver 
     14* The cookie middleware now has a nouserincookie option which forces the  
     15  middleware to store the username in a Beaker session rather than in plain 
     16  text in the cookie. See examples/docs/form_no_user_in_cookie.py for an 
     17  example of its use. 
     18* Form authentication method now defaults to 200 OK rather than 401 when  
     19  the sign in form is displayed so that it works with Safari 3 Beta.  
     20* The cookie middleware Bad Ticket page now also uses 200 OK, also to  
     21  support Safari 3 Beta. 
     22* The cookie middleware bad ticket now logs to debug rather than error to  
     23  avoid the ``No handlers could be found for logger  
     24  "authkit.authenticate.cookie"`` message you get with a bad cookie if no 
     25  error logging is specifically set up. 
     26* Added a user management api_version attribute and changed the API so that 
     27  the users object is set up on each request and recieves an environ 
     28  argument. 
     29* Fixed encrypt typo with postgres users driver 
     30* Renamed the config_paste option to app_conf in authenticate middleware. If  
     31  you get an "No authkit.setup.method was specified" error when you are sure 
     32  it is specified, this might be why. 
    1033 
    11340.4.0  
  • AuthKit/trunk/authkit/authenticate/form.py

    r116 r139  
    1010because this middleware sets the environ['pylons.error_call'] key so that the 
    1111error documents middleware doesn't intercept the response. 
     12 
     13From AuthKit 0.4.1 using 200 OK when the form is shown is now the default.  
     14This is so that Safari 3 Beta displays the page rather than trying to  
     15handle the response itself as a basic or digest authentication. 
     16 
     17The username and password are username2, password2 and الإعلاني, password1 
     18respectively. 
    1219""" 
    1320 
     
    4653        app, 
    4754        charset=None, 
    48         status="401 Unauthorized", 
     55        status="200 OK", 
    4956        **p 
    5057    ):