TracCas always redirected me back to CAS which put my browser in an infinite loop
|Reported by:||anonymous||Owned by:||dgelhar|
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.
Change History (6)
comment:3 Changed 3 years ago by wildintellect
- Severity changed from normal to blocker
- Trac Release changed from 0.11 to 0.12