From: oajulianclementson <51331324+oajulianclementson@users.noreply.github.com> Date: Thu, 6 May 2021 20:27:12 +0000 (+0100) Subject: LP#1842297: Only read active configuration X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a6582bbd2101800ee2de9269677e64c46e6dc31d;p=evergreen%2Fpines.git LP#1842297: Only read active configuration --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/OpenAthens.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/OpenAthens.pm index 4a5af936b9..22becd07e4 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/OpenAthens.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/OpenAthens.pm @@ -60,7 +60,6 @@ sub perform_openathens_sso_if_required { $self->_get_openathens_config_for_org($ctx->{user}->home_ou); if ($openathens_config - && $U->is_true($openathens_config->{active}) && $U->is_true($openathens_config->{auto_signon_enabled}) ) { # Remove scheme and hostname from redirect_to (this may have been set @@ -231,7 +230,7 @@ sub _get_openathens_config_for_org { } }, where => { - '+coai' => { org_unit => $org_id } + '+coai' => { org_unit => $org_id, active => 't' } }, order_by => { 'coai' => ['id'] } }); diff --git a/docs/RELEASE_NOTES_NEXT/Administration/OpenAthens_SignOn.adoc b/docs/RELEASE_NOTES_NEXT/Administration/OpenAthens_SignOn.adoc index 1c526d3d50..7060645c87 100644 --- a/docs/RELEASE_NOTES_NEXT/Administration/OpenAthens_SignOn.adoc +++ b/docs/RELEASE_NOTES_NEXT/Administration/OpenAthens_SignOn.adoc @@ -51,7 +51,10 @@ for all libraries below it in your organisational hierarchy. A single OpenAthens sign-on configuration normally equates to a single *domain* in the OpenAthens service. If in doubt refer to your OpenAthens account manager or implementation partner. -* *Active* - Enable this connection (enabled by default). +* *Active* - Enable this connection (enabled by default). N.B. Evergreen + does not support more than one active connection to OpenAthens at a time. If + more than one connection is added here, Evergreen will use only the _first_ + connection that has *Active* enabled. * *API key* - the 36-character OpenAthens *API key* that was generated in step 2 above. * *Connection ID* - the numerical *Connection ID* that was generated for the