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