From e9fcc4cf2748778ddd048ac5b16e282137980c7d Mon Sep 17 00:00:00 2001 From: Art Rhyno Date: Wed, 23 Jan 2013 11:54:26 -0500 Subject: [PATCH] Config and TT2 changes for surfacing CAS in TPAC These modifications: 1) assign the login and logout URLs for CAS support 2) replace the default cas_intro.tt2 screen with one specific to Windsor 3) show CAS_specific logout link if CAS is the authentication mechanism Note that it is extremely important to have CAS logout with the central CAS service since another user could have access to an account on a public station. The central CAS service invalidates the ticket and forces a new authentication session. Signed-off-by: Art Rhyno --- Open-ILS/src/templates_windsor/opac/cas_intro.tt2 | 45 ++++++++++++++ .../src/templates_windsor/opac/parts/config.tt2 | 9 +++ .../src/templates_windsor/opac/parts/topnav.tt2 | 72 ++++++++++++++++++++++ 3 files changed, 126 insertions(+) create mode 100644 Open-ILS/src/templates_windsor/opac/cas_intro.tt2 create mode 100644 Open-ILS/src/templates_windsor/opac/parts/topnav.tt2 diff --git a/Open-ILS/src/templates_windsor/opac/cas_intro.tt2 b/Open-ILS/src/templates_windsor/opac/cas_intro.tt2 new file mode 100644 index 0000000000..83317529d5 --- /dev/null +++ b/Open-ILS/src/templates_windsor/opac/cas_intro.tt2 @@ -0,0 +1,45 @@ +[% PROCESS "opac/parts/header.tt2"; + PROCESS "opac/parts/misc_util.tt2"; + WRAPPER "opac/parts/base.tt2"; + INCLUDE "opac/parts/topnav.tt2"; + ctx.page_title = l("CAS Information") %] +
+
+
+ + + + +
+
+
+
+[% END %] diff --git a/Open-ILS/src/templates_windsor/opac/parts/config.tt2 b/Open-ILS/src/templates_windsor/opac/parts/config.tt2 index fab6b33f59..6b7ae7fe37 100644 --- a/Open-ILS/src/templates_windsor/opac/parts/config.tt2 +++ b/Open-ILS/src/templates_windsor/opac/parts/config.tt2 @@ -31,6 +31,15 @@ ctx.refworks.url = 'http://ezproxy.uwindsor.ca/login?url=http://refworks.scholar # ctx.refworks.url = 'http://librweb.laurentian.ca/login?url=http://refworks.scholarsportal.info'; ############################################################################## +# CAS support +############################################################################## +# Specify CAS URL for Login +ctx.cas.url = 'https://uwinid.uwindsor.ca/cas/login?service=https://windsor-test.concat.ca/eg/opac/login'; +# Specify CAS URL for Logout +ctx.cas.logout = 'https://uwinid.uwindsor.ca/cas/logout'; + + +############################################################################## # OpenURL resolution ############################################################################## # Evergreen provides the ability to point at an OpenURL resolver to find diff --git a/Open-ILS/src/templates_windsor/opac/parts/topnav.tt2 b/Open-ILS/src/templates_windsor/opac/parts/topnav.tt2 new file mode 100644 index 0000000000..c6a2274b3d --- /dev/null +++ b/Open-ILS/src/templates_windsor/opac/parts/topnav.tt2 @@ -0,0 +1,72 @@ +[% IF !ctx.is_staff %] +
+ +
+[% END %] +[% INCLUDE "opac/parts/topnav_links.tt2" %] -- 2.11.0