I think I've come across a bug, and a nasty one too. I'm trying to make my apps work with cas authentication.
The user can successfully register in the cas provider but when he tries to log in from the cas client app - i.e. he clicks on the login link in the cas client, is taken to the cas provider's log in page, enters his credentials and hits the login button - he gets this error message: <type 'exceptions.IOError'> [Errno 2] No such file or directory: '/cas/default/user/cas/serviceValidate?service= http://127.0.0.1:8001/app1/default/user/login&ticket=ST-44b14b77-8ba7-4008-a629-6344d16a3179 ' Version web2py(tm)Version 2.8.2-stable+timestamp.2014.02.14.22.30.06PythonPython 2.7.5: /usr/local/opt/python/bin/python2.7 (prefix: /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7) Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. Traceback (most recent call last): File "/Users/alexei/Dev/web2py/web2py/gluon/restricted.py", line 217, in restricted exec ccode in environment File "/Users/alexei/Dev/web2py/web2py/applications/app1/controllers/default.py" <http://127.0.0.1:8001/admin/default/edit/app1/controllers/default.py>, line 78, in <module> File "/Users/alexei/Dev/web2py/web2py/gluon/globals.py", line 385, in <lambda> self._caller = lambda f: f() File "/Users/alexei/Dev/web2py/web2py/applications/app1/controllers/default.py" <http://127.0.0.1:8001/admin/default/edit/app1/controllers/default.py>, line 40, in user return dict(form=auth()) File "/Users/alexei/Dev/web2py/web2py/gluon/tools.py", line 1303, in __call__ return getattr(self, args[0])() File "/Users/alexei/Dev/web2py/web2py/gluon/tools.py", line 2369, in login redirect(cas.login_url(next), File "/Users/alexei/Dev/web2py/web2py/gluon/contrib/login_methods/cas_auth.py", line 66, in login_url current.session.token = self._CAS_login() File "/Users/alexei/Dev/web2py/web2py/gluon/contrib/login_methods/cas_auth.py", line 98, in _CAS_login data = urllib.urlopen(url).read() File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 87, in urlopen return opener.open(url) File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 208, in open return getattr(self, name)(url) File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 463, in open_file return self.open_local_file(url) File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 477, in open_local_file raise IOError(e.errno, e.strerror, e.filename) IOError: [Errno 2] No such file or directory: '/cas/default/user/cas/serviceValidate?service=http://127.0.0.1:8001/app1/default/user/login&ticket=ST-44b14b77-8ba7-4008-a629-6344d16a3179' -- Alexei Vinidiktov -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

