>I have my CAS working properly.
First, what do you mean by that?
CAS works out of the box. Here is how to test the scenario *I think*
you are describing:
1. From the web interface create three applications app1, app2, app3
(app1 and app2 will be consumers, app3 the CAS provider).
2. In app1 and app2 in db.py replace:
auth = Auth(db, hmac_key=Auth.get_or_create_key())
with this:
auth = Auth(db,cas_provider = '
http://127.0.0.1:8000/app3/default/user/
cas')
3. Go to
http://localhost:8000/app3/appadmin/insert/db/auth_user and
create a new user (do first, last, email, password).
4. Go to
http://localhost:8000/app1/default/index and hit 'login', (it
should send you to
http://127.0.0.1:8000/app3/default/user/cas/login?service=http://localhost:8000/app1/default/user/login)
and login with the credentials from step 3.
5. Go to
http://localhost:8000/app2/default/index and hit 'login' - it
should AUTOMATICALLY log you in without asking for email/password
Works for me. If your consumers are not running from the same server
you may have to do extra stuff but first see if the above works.