<option name='patron_status_always_permit_loans' value='false' />
-->
+ <!--
+ Use the open-ils.auth_proxy service for when verifying
+ a patrons' password.
+ The 'open-ils.auth_proxy.enabled' API also must return true.
+ <option name='use_proxy_for_patron_auth' value='false' />
+ -->
+
+ <!--
+ Use the open-ils.auth_proxy service for SIP client logins
+ when the auth proxy is enabled. Defaults to not using
+ the proxy for SIP client logins.
+ The 'open-ils.auth_proxy.enabled' API also must return true.
+ <option name='use_proxy_for_client_login' value='false' />
+ -->
+
</options>
<checkin_override>
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(
- 'open-ils.auth_proxy',
- 'open-ils.auth_proxy.enabled'
- );
- };
+
+ if ($use_proxy_for_client_login =~ /true/i) {
+ eval {
+ $auth_proxy_enabled = $U->simplereq(
+ 'open-ils.auth_proxy',
+ 'open-ils.auth_proxy.enabled'
+ );
+ };
+ }
my $response;
- if ($auth_proxy_enabled && $use_proxy_for_client_login =~ /true/i) {
+ if ($auth_proxy_enabled) {
$response = $U->simplereq(
'open-ils.auth_proxy',
'open-ils.auth_proxy.login',
syslog('LOG_DEBUG', 'OILS: Patron->check_password()');
return 0 unless (defined $pwd and $self->{user});
+ my $use_proxy_for_patron_auth =
+ OpenILS::SIP->get_option_value('use_proxy_for_patron_auth') || 'false';
+
my $auth_proxy_enabled = 0;
- eval {
- $auth_proxy_enabled = $U->simplereq(
- 'open-ils.auth_proxy',
- 'open-ils.auth_proxy.enabled'
- );
- };
+
+ if ($use_proxy_for_patron_auth =~ /true/i) {
+ eval {
+ $auth_proxy_enabled = $U->simplereq(
+ 'open-ils.auth_proxy',
+ 'open-ils.auth_proxy.enabled'
+ );
+ };
+ }
if ($auth_proxy_enabled) {
my $response = $U->simplereq(