Changes between Version 12 and Version 13 of HttpAuthPlugin


Ignore:
Timestamp:
May 9, 2015, 4:32:31 PM (9 years ago)
Author:
figaro
Comment:

Cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • HttpAuthPlugin

    v12 v13  
    11[[PageOutline(2-5,Contents,pullout)]]
    2 = Force HTTP authentication from within Trac =
    32
    4 == Description ==
     3= Force HTTP authentication from within Trac
    54
    6 Allows you to protect certain paths with HTTP authentication. The AccountManagerPlugin is used to check passwords.
     5== Description
     6
     7This plugin allows you to protect certain paths with HTTP authentication. The AccountManagerPlugin is used to check passwords.
    78
    89Primarily this is meant to be used with the XmlRpcPlugin so it will work while using !AccountManager's form-based logins.
    910
    10 == Bugs/Feature Requests ==
     11== Bugs/Feature Requests
    1112
    1213Existing bugs and feature requests for HttpAuthPlugin are
     
    1617[http://trac-hacks.org/newticket?component=HttpAuthPlugin new ticket].
    1718
    18 == Download ==
     19[[TicketQuery(component=HttpAuthPlugin&group=type,format=progress)]]
     20
     21== Download
    1922
    2023Download the zipped source from [download:httpauthplugin here].
    2124
    22 == Source ==
     25== Source
    2326
    2427You can check out HttpAuthPlugin from [http://trac-hacks.org/svn/httpauthplugin here] using Subversion, or [source:httpauthplugin browse the source] with Trac.
    2528The version in ''0.10'' is also working with ''0.11.2.1'' release, at least with mod_python.
    2629
    27 == Example ==
     30== Example
    2831
    29 To enable:
    30 {{{
    31 #!ini
     32The following are examples for usage of this plugin, by making the indicated changes to your `trac.ini` file.
     33 
     34To enable the plugin:
     35{{{#!ini
    3236[components]
    3337httpauth.* = enabled
     
    3539
    3640To add additional paths:
    37 {{{
    38 #!ini
     41{{{#!ini
    3942[httpauth]
    4043paths = /xmlrpc, /login/xmlrpc
    4144}}}
    4245
    43 To add additional formats, like rss use this:
    44 {{{
    45 #!ini
     46To add additional formats, such as RSS:
     47{{{#!ini
    4648[httpauth]
    4749formats = rss
    4850}}}
    4951
    50 == Troubleshooting ==
     52== Troubleshooting
    5153
    52 === Authentication issues while using Trac with mod_wsgi ===
     54=== Authentication issues while using Trac with mod_wsgi
    5355
    54 ==== Symptom ====
     56==== Symptom
    5557
    5658HTTP 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.
     
    6264}}}
    6365
    64 It is already in Ticket #1169. I've quoted it here, since the solution is hard to find otherwise.
     66See ticket #1169.
    6567
    66 ==== Cause ====
     68==== Cause
    6769
    6870If you're using `mod_wsgi`, authorization information is stripped before passing to the WSGI application.
    6971
    70 ==== Solution ====
     72==== Solution
    7173
    7274Turn `WSGIPassAuthorization On` in your `Apache` configuration for it to work.
     
    7476See also [http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives ConfigurationDirectives]
    7577
    76 == Recent Changes ==
     78== Recent Changes
    7779
    7880[[ChangeLog(httpauthplugin, 3)]]
    7981
    80 == Author/Contributors ==
     82== Author/Contributors
    8183
    8284'''Author:''' [wiki:coderanger] [[BR]]