Lines 298-308
sub get_template_and_user {
Link Here
|
298 |
} |
298 |
} |
299 |
else { # if this is an anonymous session, setup to display public lists... |
299 |
else { # if this is an anonymous session, setup to display public lists... |
300 |
|
300 |
|
301 |
# If shibboleth is enabled, and we have a shibboleth login attribute, |
301 |
# If shibboleth is enabled, and we're in an anonymous session, we should allow |
302 |
# but we are in an anonymouse session, we clearly have an invalid |
302 |
# the user to attemp login via shibboleth. |
303 |
# Shibboleth account. |
303 |
if ( $shib ) { |
304 |
if ( $shib && $shib_login ) { |
304 |
$template->param( shibbolethAuthentication => $shib, |
305 |
$template->param( invalidShibLogin => '1'); |
305 |
shibbolethLoginUrl => login_shib_url($in->{'query'}), |
|
|
306 |
); |
307 |
# If shibboleth is enabled and we have a shibboleth login attribute, |
308 |
# but we are in an anonymous session, then we clearly have an invalid |
309 |
# shibboleth koha account. |
310 |
if ( $shib_login ) { |
311 |
$template->param( invalidShibLogin => '1'); |
312 |
} |
306 |
} |
313 |
} |
307 |
|
314 |
|
308 |
$template->param( sessionID => $sessionID ); |
315 |
$template->param( sessionID => $sessionID ); |
Lines 1176-1181
sub checkauth {
Link Here
|
1176 |
|
1183 |
|
1177 |
if ($shib) { |
1184 |
if ($shib) { |
1178 |
$template->param( |
1185 |
$template->param( |
|
|
1186 |
shibbolethAuthentication => $shib, |
1179 |
shibbolethLoginUrl => login_shib_url($query), |
1187 |
shibbolethLoginUrl => login_shib_url($query), |
1180 |
); |
1188 |
); |
1181 |
} |
1189 |
} |