> Hi Noah, > thanks it was very useful but now I'm trying to patch the wsgy.py to > add two environment variables environ['HTTP_AUTH_USER'] and > environ['HTTP_AUTH_PW'] populated with string extracted from > HTTP_AUTHORIZATION header when basic http-auth is used... the problem > now is that nothing happens if i add a line before the end of "def > setup_environ(self)" .i.e.
For this you can use a custom plugin, see TracDev on t.e.o. for more information on plugin development. The hooks you are searching for is either the trac.web.api.IAuthenticator or the trac.web.api.IRequestFilter extension points. See http://trac.edgewall.org/wiki/TracDev/PluginDevelopment for more information, and of course the existing authenticators you can find on trac-hacks.org. See for example http://trac-hacks.org/browser/accountldapplugin/0.12/accountldap/accountldap.py for a working request filter implementation. Regards Carsten -- You received this message because you are subscribed to the Google Groups "Trac Development" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en.
