You may wish to use an authentication proxy for SIP patron
authentication, but generally the SIP client login will be known only to
Evergreen, not to the central authentication system. This commit avoids
using the authentication proxy for client login unless the new SIP
"use_proxy_for_client_login" option is set to "true".
Signed-off-by: Jeff Davis <jeff.davis@bc.libraries.coop>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
return $self->{authtoken} if ($self->fetch_session); # fetch the session
}
+ my $use_proxy_for_client_login = $self->get_option_value('use_proxy_for_client_login') || 'false';
+
my $auth_proxy_enabled = 0;
eval {
$auth_proxy_enabled = $U->simplereq(
};
my $response;
- if ($auth_proxy_enabled) {
+ if ($auth_proxy_enabled && $use_proxy_for_client_login =~ /true/i) {
$response = $U->simplereq(
'open-ils.auth_proxy',
'open-ils.auth_proxy.login',