简体   繁体   English

CAS -Apereo Jasig:成功登录后如何重定向到自定义网页?

[英]CAS -Apereo Jasig: How to redirect to a custom web page after a successful login?

I am new to Spring and I am utilizing Jasig-CAS 4.1.4 in my spring (4.3.0) project. 我是Spring的新手,我在Spring(4.3.0)项目中使用Jasig-CAS 4.1.4。 The project is modularized one and I have implemented the CAS as another module. 该项目是模块化的,而我已经将CAS实施为另一个模块。 I have copied the original cas view and modified it goes with the project. 我已经复制了原始的cas视图并对其进行了修改。 So, I have set the CAS login page after modifying jsp views and set it as admin module's login page. 因此,我在修改jsp视图后设置了CAS登录页面,并将其设置为admin模块的登录页面。 I have configured the primary authentication by using jdbc.QueryDatabaseAuthenticationHandler and it works very well. 我已经通过使用jdbc.QueryDatabaseAuthenticationHandler配置了基本身份验证,并且效果很好。 So, I need to redirect to the admin's home page when the login is succeeded. 因此,登录成功后,我需要重定向到管理员的主页。 But I have no idea how to do it or where to do it. 但是我不知道该怎么做或在哪里做。

Will anybody be able to help me with this? 有人可以帮助我吗? (PS I tried some things with login-webflow.xml. but didn't work it out.) (PS我尝试使用login-webflow.xml进行了一些操作,但是没有解决。)

/cas/login?service=where-you-want-to-go

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM