I'm trying to get web2py to authenticate against a Django CAS
provider. The CAS provider is at http://10.1.1.1:10000/cas. The CAS
provider works for Django based CAS consumers.

I commented out the existing auth code in my db.py and added this as
per the instructions on http://web2py.com/cas:

from gluon.contrib.login_methods.cas_auth import
CasAuth
auth.define_tables(username=True)
auth.settings.login_form=CasAuth(
 
globals(),
   urlbase = "http://10.1.1.1:10000/
cas",
   actions=['login','check','logout'])

web2py is available at: http://10.1.1.1:9000/myapp/default. When I
visit http://10.1.1.1:9000/myapp/default/user/login, I get redirected
to the CAS provider at:

      
http://10.1.1.1:10000/cas/login/?service=http://10.1.1.1:9000/myapp/default/user/login

I can submit the login form but I get an error in Firefox:

      "The page isn't redirecting properly"

Is the CAS provider redirecting back to the correct place? Did I miss
something silly? Thanks

Reply via email to