gryffin wrote:
I need to provide for WSSO authentication for trac from my network. I don't see an existing hack for this, or a way to do it in apache. I can perform this operation in about fifteen lines: check to see if the user is authenticated, if not send the user to be authenticated and return back to the trac login. In theory.I figured out that the best place to insert this code is into auth.py but I can't make it work. At best, trac ignores my efforts. I've inserted this code into each defined _do_auth and into _do_login, but when I login to Trac it makes no effort to send me to authenticate against the company WSSO server. ( For clarity, I restart Apache after each change to auth.py, and close out my browser to expire any session cookies, such as those from WSSO. ) Can anyone give me insight on where in auth.py I should insert my code? Thanks!
Look at the CasPlugin on trac-hacks for an example of this. That allows Trac to use a JA-SIG CAS server for authentication. There is also an OpenID plugin, which may be useful (though it was pretty ugly when I last looked).
--Noah
signature.asc
Description: OpenPGP digital signature
