Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配置CAS_ADMIN_PREFIX后,在/admin/logout登出后没有在cas登出 #207

Closed
leavest opened this issue Apr 23, 2019 · 1 comment
Closed

Comments

@leavest
Copy link
Contributor

leavest commented Apr 23, 2019

配置CAS_ADMIN_PREFIX后,在/admin/logout登出后在系统登出了,但是没有在cas登出。
访问任意需要登录的页面,重定向到cas登录页后会自动登录了

@leavest
Copy link
Contributor Author

leavest commented Apr 23, 2019

/admin/logout 的时候在这里 return 了,当作普通请求处理了

# django-cas-ng.middleware.py   line 52 
 if request.user.is_authenticated:
     if request.user.is_staff:
        return None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant