Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

     学校IdP可自定义IdP登出页面的内容,包括页面提示内容、学校logo、成功登出后的页面停留时间和登出成功后的回跳页面等参数。

1、更新登出页面配置文件、修改IdP成功登出后跳转页面和页面停留时间

1)备份/opt/shibboleth-idp/views/目录下的三个文件:logout.vm、logout-complete.vm、logout-propagate.vm。

...

let jumpAddress = 'https://www.carsi.edu.cn/'; // Set default jump page

<span id="jumpTime">10</span>

let jumpTime = 10 ; // Jump time setting

idp在进行登出操作时,用户端会显示通过logout.vm、logout-complete.vm、logout-propagate.vm三个Velocity模板文件渲染得到的页面。

2、修改IdP登出页面文字提示

1)备份/opt/shibboleth-idp/messages/目录下:messages_zh_CN.properties、messages.properties;

2)修改中文提示,具体包括:messages_zh_CN.properties文件中idp.title、idp.footer、idp.logout.attempt、idp.logo,添加idp.logoutIntroduce、idp.logout.jumpButton,示例如下:

idp.title = 教育网联邦认证与资源共享基础设施CARSI - 北京大学

idp.footer = 教育网联邦认证与资源共享基础设施CARSI - 北京大学

idp.logout.attempt = 已成功退出学校身份认证系统。<br>正在退出以下服务:

idp.logo = /images/idplogo.jpg

idp.logoutIntroduce = 已成功退出学校身份认证系统。
idp.logout.jumpButton = 返回CARSI首页

3)修改英文提示,具体包括:添加messages.properties文件中idp.title、idp.footer、idp.logout.attempt、idp.logo、idp.logoutIntroduce、idp.logout.jumpButton,示例如下:

idp.title = CERNET Authentication and Resource Sharing Infrastructure - Peking University

idp.footer = CERNET Authentication and Resource Sharing Infrastructure - Peking University

idp.logout.attempt = Has successfully exited the school identity authentication system. <br>Attempting to log out of the following services:

idp.logo = /images/idplogo.jpg

idp.logoutIntroduce = Has successfully exited the school identity authentication system.
idp.logout.jumpButton = Return to CARSI home page

*注意:需要将上方红色字体部分替换为学校对应信息。

修改后的文字内容展示在IdP登出页面的如下位置。

上传本校logo至 /opt/shibboleth-idp/edit-webapp/images,logo文件名与messages_zh_CN.properties和messages.properties文件中指定的"idp.logo"变量值"/images/"之后的部分一致。上例为"idplogo.jpg"。

4、编译重启

[carsi@idp ~]# /opt/shibboleth-idp/bin/build.sh

[carsi@idp ~]# systemctl restart jetty

...