Lines 60-81
BEGIN {
Link Here
|
60 |
import C4::External::BakerTaylor qw(&image_url &link_url); |
60 |
import C4::External::BakerTaylor qw(&image_url &link_url); |
61 |
} |
61 |
} |
62 |
} |
62 |
} |
63 |
my $logout=''; |
63 |
|
64 |
# CAS Single Sign Out |
64 |
my $cas_logout_required = C4::Context->preference('casAuthentication') |
65 |
if (C4::Context->preference('casAuthentication')){ |
65 |
and C4::Auth_with_ldap::logout_required($query); |
66 |
# Check we havent been hit by a logout call |
|
|
67 |
my $xml = $query->param('logoutRequest'); |
68 |
if ($xml) { |
69 |
my $dom = XML::LibXML->load_xml(string => $xml); |
70 |
my $ticket; |
71 |
foreach my $node ($dom->findnodes('/samlp:LogoutRequest')){ |
72 |
$ticket = $node->findvalue('./samlp:SessionIndex'); |
73 |
} |
74 |
$query->param(-name =>'logout.x', -value => 1); |
75 |
$query->param(-name =>'cas_ticket', -value => $ticket); |
76 |
$logout=1; |
77 |
} |
78 |
} |
79 |
|
66 |
|
80 |
my ( $template, $borrowernumber, $cookie ) = get_template_and_user( |
67 |
my ( $template, $borrowernumber, $cookie ) = get_template_and_user( |
81 |
{ |
68 |
{ |
Lines 87-93
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
Link Here
|
87 |
} |
74 |
} |
88 |
); |
75 |
); |
89 |
|
76 |
|
90 |
if ($logout){ |
77 |
if ($cas_logout_required){ |
91 |
print $query->header; |
78 |
print $query->header; |
92 |
exit; |
79 |
exit; |
93 |
} |
80 |
} |
94 |
- |
|
|