shiro integrated cas single sign out

The configuration of shiro's integrated cas to achieve single sign-on will not be repeated here. Let's talk about a problem that I encountered when doing single sign-out.

1. Problem description:

You cannot redirect to the cas login page during single logout, but only to the address specified by the service. You need to manually refresh the page before redirecting to the cas login page. For example, the url of my logout is: http://cas. server.com:8080/cas-server-webapp/logout?service=http://cas.server.com:8080/emcmp-common

2. Solution:

Display the LogoutFilter that configures shiro and specify the redirectUrl attribute, as shown in the following figure



 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326704560&siteId=291194637