TracCas always redirected me back to CAS which put my browser in an infinite loop
|Reported by:||anonymous||Owned by:||David Gelhar|
The code at http://trac-hacks.org/browser/traccasplugin/0.11/traccas/traccas.py seems to be missing something. When i click on the login link in trac i end up at the cas login. After I log into cas I get redirected to trac's login page
I put debug code into TracCas and determined that the "authenticate" function was working but for some reason the "_do_login" function never had the right value for req.remote_user so TracCas always redirected me back to CAS which put my browser in an infinite loop
By simply replacing the "if not req.remote_user:" with "if not req.authname or req.authname == 'anonymous':" in the "_do_login" function TracCas seems to work properly.