53 | | ''Note that optional login requires cookies.'' |
| 54 | === Digest Authentication === |
| 55 | |
| 56 | To 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 | |
| 58 | For 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 | }}} |
| 73 | Don'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 | |