if you want to connect to a CAS version 2 JASIG Server use this:
auth.settings.login_form=CasAuth(
urlbase = "https://[Your CAS server]/cas",
actions = ['login','serviceValidate','logout'],
casversion = 2,
casusername = "cas:user")
If you look in that file in CasAuth.__init__:
def __init__(self, g=None, # g for backward compatibility ###
actions=['login', 'validate', 'logout'],
maps=dict(username=lambda v: v.get('username', v['user']),
email=lambda v: v.get('email', None),
user_id=lambda v: v['user']),
casversion=1,
casusername='cas:user'
):
The maps argument is what you want. It maps fields from the JASIG response into fields in your auth_user table. CAS does not specify their names. Doh!