Not sure what example to write.

Make two copies of the welcome app. Call one app1 and one app2. Create and 
account and login in app1.

Edit app2/models/db.py and replace 

auth = Auth(db)

with 

auth = Auth(db,cas_provider = 'http://127.0.0.1:8000/app1/default/user/cas')

Now try login in app2. and you will get redirected to app1.




On Thursday, 21 February 2013 10:32:56 UTC-6, rh wrote:
>
> On Thu, 21 Feb 2013 08:22:44 -0800 (PST) 
> Massimo Di Pierro 
> <[email protected] <javascript:>> wrote: 
>
> > CAS 2 is built in in web2py. Every web2py app is always a CAS 2 
> > provider (nothing to do about it). Every app can also be a CAS 1/2 
> > consumer but must be enabled. 
> > 
> > 
> http://web2py.com/books/default/chapter/29/09?search=CAS#Central-Authentication-Service
>  
>
> Yes, I have read that but still I can find no working example. For 
> something 
> so simple and useful I thought I'd find a working example somewhere. But 
> I've have not and in previous posts the same docs are pointed out. 
>
> > 
> > On Wednesday, 20 February 2013 14:01:26 UTC-6, rh wrote: 
> > > 
> > > Hello web2pyotes, 
> > > (or is it web2pyetians??, web2pythonists??, web2pyadres??) 
> > > 
> > > I have been looking for a complete, working example of a CAS 2 
> > > provider and consumer and have not found any at all. I checked in 
> > > web2py-appliances and found a commented out call to cas_provider. I 
> > > also looked in recipes, etc., etc. 
> > > 
> > > Can anyone point me to one complete, working example of a CAS 2 
> > > provider and consumer? 
> > > 
> > > 
> > 
> > -- 
> > 
> > --- 
> > 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 web2py 
> > [email protected] <javascript:>. For 
> > more options, visit https://groups.google.com/groups/opt_out. 
> > 
> > 
>
>
> -- 
>
>
>

-- 

--- 
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.


Reply via email to