Changes between Version 12 and Version 13 of HttpAuthPlugin
- Timestamp:
- May 9, 2015, 4:32:31 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HttpAuthPlugin
v12 v13 1 1 [[PageOutline(2-5,Contents,pullout)]] 2 = Force HTTP authentication from within Trac =3 2 4 = = Description ==3 = Force HTTP authentication from within Trac 5 4 6 Allows you to protect certain paths with HTTP authentication. The AccountManagerPlugin is used to check passwords. 5 == Description 6 7 This plugin allows you to protect certain paths with HTTP authentication. The AccountManagerPlugin is used to check passwords. 7 8 8 9 Primarily this is meant to be used with the XmlRpcPlugin so it will work while using !AccountManager's form-based logins. 9 10 10 == Bugs/Feature Requests ==11 == Bugs/Feature Requests 11 12 12 13 Existing bugs and feature requests for HttpAuthPlugin are … … 16 17 [http://trac-hacks.org/newticket?component=HttpAuthPlugin new ticket]. 17 18 18 == Download == 19 [[TicketQuery(component=HttpAuthPlugin&group=type,format=progress)]] 20 21 == Download 19 22 20 23 Download the zipped source from [download:httpauthplugin here]. 21 24 22 == Source ==25 == Source 23 26 24 27 You can check out HttpAuthPlugin from [http://trac-hacks.org/svn/httpauthplugin here] using Subversion, or [source:httpauthplugin browse the source] with Trac. 25 28 The version in ''0.10'' is also working with ''0.11.2.1'' release, at least with mod_python. 26 29 27 == Example ==30 == Example 28 31 29 To enable: 30 {{{ 31 #!ini 32 The following are examples for usage of this plugin, by making the indicated changes to your `trac.ini` file. 33 34 To enable the plugin: 35 {{{#!ini 32 36 [components] 33 37 httpauth.* = enabled … … 35 39 36 40 To add additional paths: 37 {{{ 38 #!ini 41 {{{#!ini 39 42 [httpauth] 40 43 paths = /xmlrpc, /login/xmlrpc 41 44 }}} 42 45 43 To add additional formats, like rss use this: 44 {{{ 45 #!ini 46 To add additional formats, such as RSS: 47 {{{#!ini 46 48 [httpauth] 47 49 formats = rss 48 50 }}} 49 51 50 == Troubleshooting ==52 == Troubleshooting 51 53 52 === Authentication issues while using Trac with mod_wsgi ===54 === Authentication issues while using Trac with mod_wsgi 53 55 54 ==== Symptom ====56 ==== Symptom 55 57 56 58 HTTP authentication just does not want to work. The Authorization header is passed with the HTTP request, but it seems to be lost on the way. … … 62 64 }}} 63 65 64 It is already in Ticket #1169. I've quoted it here, since the solution is hard to find otherwise.66 See ticket #1169. 65 67 66 ==== Cause ====68 ==== Cause 67 69 68 70 If you're using `mod_wsgi`, authorization information is stripped before passing to the WSGI application. 69 71 70 ==== Solution ====72 ==== Solution 71 73 72 74 Turn `WSGIPassAuthorization On` in your `Apache` configuration for it to work. … … 74 76 See also [http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives ConfigurationDirectives] 75 77 76 == Recent Changes ==78 == Recent Changes 77 79 78 80 [[ChangeLog(httpauthplugin, 3)]] 79 81 80 == Author/Contributors ==82 == Author/Contributors 81 83 82 84 '''Author:''' [wiki:coderanger] [[BR]]