Ok, it works fine.

Thank you for everything Massimo

El lun, 08-11-2010 a las 10:13 -0800, mdipierro escribió:
> You are right. The problem is the cas appliance had some problems to
> begin with and has always been difficult to configure, because it
> predates auth. What is in the book should work (using cas.py) but only
> if you do not use Auth.
> 
> You may be better off using the cas consumer integrated in Auth:
> 
> gluon/contrib/login_methods/cas_auth.py
> 
> From the docstring in this file:
> 
>     Login will be done via Web2py's CAS application, instead of
> web2py's
>     login
> form.
> 
>     Include in your model (eg
> db.py)::
> 
>         from gluon.contrib.login_methods.cas_auth import
> CasAuth
>  
> auth.define_tables(username=True)
>  
> auth.settings.login_form=CasAuth(
>  
> globals(),
>             urlbase = "https://web2py.com/cas/
> cas",
>  
> actions=['login','check','logout'])
> 
>     where urlbase is the actual CAS server url without the
> login,logout...
>  
> Enjoy.
> 
> 
> 
> 
> 
> 
> 
> On Nov 8, 12:02 pm, Daniel Gonzalez <dgzabal...@gmail.com> wrote:
> > The online book says to use cas.py
> >
> > http://web2py.com/book/default/chapter/08#Central-Authentication-Service
> >
> > In the paper version of the book or in the pdf one, there is a different
> > documentation?
> >
> > Daniel
> >
> > El lun, 08-11-2010 a las 09:47 -0800, mdipierro escribió:
> >
> > > You should use the CAS appliance for server but do not follow those
> > > instructions for the clients. Instead follow the instructions in the
> > > book (i.e. do not use cas.py).
> >
> >


Reply via email to