Hi,

I use both django.contrib.auth.backends.ModelBackend and 
django_cas_ng.backends.CASBackend as authentication backends,
for two different targets:
- ModelBackend for superusers, which are not knowns from CASBackend
- CASBackend for all other authentication usages

I have added these lines to urls.py
    url(r'^accounts/login/$', django_cas_ng.views.login, name='login'),
    url(r'^accounts/logout/$', django_cas_ng.views.logout, name='logout'),

1) Login problem: How can I redirect to accounts/login/ a page ending with 
/?edit suffix?
Please note that I want to keep ModelBackend for admin/ pages
Well, this question is only to satisfy my curiosity because I have 
introduced a middelware forcing CASBackend for all pages except admin/ and 
accounts/
and users are already authentified when they want to edit a page.

2) Logout problem is more serious: How can I ask "User Logout" menu defined 
in cms_toolbars.py to redirect towards accounts/logout/ instead of 
admin/logout/ ?
Please note that I want to keep admin/logout/ if I am authentified through 
admin/login.

Thanks

-- 
Fabrice

-- 
Message URL: 
https://groups.google.com/d/msg/django-cms-developers/topic-id/message-id
Unsubscribe: send a message to 
django-cms-developers+unsubscr...@googlegroups.com
--- 
You received this message because you are subscribed to the Google Groups 
"django CMS developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-cms-developers+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/django-cms-developers/6c5e0e8f-cb74-4490-9176-240117b403fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to