>From this error: giving me err in auth.settings.cas_domains.append AttributeError: 'NoneType' object has no attribute 'append'
I believe you are running an old version of web2py that does not support the new CAS mechanism. Please try the latest one. On Jun 22, 9:50 am, sagar <[email protected]> wrote: > Hi > > I am trying to using use cas as given in online document > > when i am using this : > > CAS.login_url='https://www.web2py.com/cas/cas/login' > CAS.check_url='https://www.web2py.com/cas/cas/check' > CAS.logout_url='https://www.web2py.com/cas/cas/logout' > CAS.my_url='http://127.0.0.1:8000/testauth/default/user/login' > > if not session.token and not request.function=='login': > redirect(URL('login')) > def login(): > session.token=CAS.login(request) > id,email,name=session.token > return dict() > def logout(): > session.token=None > CAS.logout() > > when i doing this come to know that > web2py app now has a built-in CAS consumer and provider > > while trying this(as per given there) > > auth.settings.cas_domains.append('http://consumer.com') > Consumer how to: > auth = Auth(db,cas_provider='http://provider.com/providerapp/default/ > user/cas') > > giving me err in auth.settings.cas_domains.append > > AttributeError: 'NoneType' object has no attribute 'append' > > And while trying this one earliar from your post > > In app1 db.py > from gluon.contrib.login_methods.cas_auth import CasAuth > auth.define_tables(username=True) > auth.settings.login_form=CasAuth(globals(),urlbase = "http:// > 127.0.0.1:8000/app2/default/user/login", > actions=['login','check','logout']) > > I got authenticated at app2 but not got redirected to app1. > > Please help How to get CAS working?

