Question about populating user data with Django-cas

37 views
Skip to first unread message

wasingej

unread,
Feb 27, 2014, 11:59:01 AM2/27/14
to django...@googlegroups.com
Hi guys,

I'm having trouble getting the example code that is posted in the overview document for django-cas to work.  Here is my relevant code:

cas_backend.py:

from django_cas.backends import CASBackend

class PopulatedCASBackend(CASBackend):
   
    def authenticate(self, ticket, service):
        user = super(PopulatedCASBackend, self).authenticate(ticket, service)
        print("hello world!")

        return user

settings.py:

...

AUTHENTICATION_BACKENDS = (
    'django.contrib.auth.backends.ModelBackend',
    #'django_cas.backends.CASBackend',
    'mail_site.cas_backend.PopulatedCASBackend',
)

...

When I run my website and try to log in to the cas server, I get a 403 error after entering my username/password and clicking log in.  Why would this be happening?

Jared
Reply all
Reply to author
Forward
0 new messages