Newbie question about django-cas

50 views
Skip to first unread message

wasingej

unread,
Feb 19, 2014, 1:04:45 PM2/19/14
to django...@googlegroups.com
Hello. 

I am trying to put together a little test application which allows a user to log in to a CAS server and then redirects them back to the site after they have logged in.  I have followed the instructions on this page:  https://bitbucket.org/cpcc/django-cas/overview.

The URL for my server is: login.oregonstate.edu-dev/login

However, when I try to access http://127.0.0.1:8000/accounts/login, I get redirected to: 
http://127.0.0.1:8000/accounts/login/login.oregonstate.edu-dev/login?service=http%3A%2F%2F127.0.0.1%3A8000%2Faccounts%2Flogin%2F%3Fnext%3D%252F

Can anybody point me in the right direction as to what's going on here?

Tobias Ramos

unread,
Feb 19, 2014, 1:30:56 PM2/19/14
to django...@googlegroups.com
try to set your login url to:  http://127.0.0.1:8000/accounts/login while you testing.

Tobias


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/44bfea1a-0a45-44bd-acaf-63a8f717d53a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Esau Rodriguez

unread,
Feb 19, 2014, 2:10:33 PM2/19/14
to django...@googlegroups.com
Hi there,
you have to put the absolute url for CAS_SERVER_URL

try CAS_SERVER_URL=http://login.oregonstate.edu-dev/login (or https)

Regards,
Esau Rodriguez.
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users...@googlegroups.com.
> To post to this group, send email to django...@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/44bfea1a-0a45-44bd-acaf-63a8f717d53a%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.



--
Esaú Rodríguez
esa...@gmail.com

wasingej

unread,
Feb 19, 2014, 3:30:37 PM2/19/14
to django...@googlegroups.com
The problem is fixed.  Thanks esauro :)

Jared

Reply all
Reply to author
Forward
0 new messages