Edgewall Software

Changes between Version 5 and Version 6 of TracAuthenticationIntroduction


Ignore:
Timestamp:
Apr 18, 2010, 12:44:31 PM (14 years ago)
Author:
kilbyc@…
Comment:

Added some more detail to Digest Authentication. Added WSGI authentication passthrough info.

Legend:

Unmodified
Added
Removed
Modified
  • TracAuthenticationIntroduction

    v5 v6  
    3737This method of authentication allows unauthenticated users to see and to make (limited) changes to the Trac system.  Authenticated users have a bit more access.  To login you click on the ''Login'' entry on the top menubar; after authentication you are given a cookie which is used for authorization and access control.
    3838
     39=== Basic Authentication ===
    3940To do this you need to control access to the {{{login}}} name under the Trac system, so for the example above you would change the configuration to:-
    4041{{{
     
    5152}}}
    5253
    53 ''Note that optional login requires cookies.''
     54=== Digest Authentication ===
     55
     56To setup digest authentication follow the instructions to create the digest password file. http://httpd.apache.org/docs/2.1/programs/htdigest.html. For the '''realm''' set in htdigest you must put a matching AuthName.
     57
     58For example:
     59 htdigest -c /path/to/.htdigest TracRealmName UserName
     60
     61{{{
     62 ...WSGI config if using WSGI
     63 <Location /trac>
     64   ...mod_python config if using mod_python
     65   AuthType Digest
     66   AuthName "TracRealmName"
     67   AuthDigestDomain /trac
     68   AuthDigestProvider file
     69   AuthUserFile /path/to/.htdigest
     70   Require valid-user
     71 </Location>
     72}}}
     73Don't forget, if you are using Digest with WSGI you must enable authentication passthrough with:
     74{{{
     75  WSGIPassAuthorization On
     76  WSGIScriptAlias /trac /path/to/trac/config.wsgi
     77}}}
     78
     79''Note that optional login requires cookies, and that the chosen authentication schema be active in Apache. (Basic is by default in most installations, digest usually requires changes to http.conf)''
     80
    5481
    5582== Issues ==