LP#1936422: RemoteAuth: handle "not permitted" and "has penalties" auth failures... user/jeffdavis/lp1936422-remoteauth-more-error-codes
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Thu, 15 Jul 2021 18:56:49 +0000 (11:56 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Thu, 15 Jul 2021 18:56:49 +0000 (11:56 -0700)
commit0e9a6a1170be6148d61a3eddab6dd5c4db59c20a
treed004c53c586e88add1da0be760a64dec2745c91d
parentd9bb7c920506b3d65f53672323ed9e6e128dbe8b
LP#1936422: RemoteAuth: handle "not permitted" and "has penalties" auth failures separately

Previously, a user who lacked permission to authenticate was treated as
not found by RemoteAuth, and a user with standing penalites was treated
as blocked.  This commit adds the ability to handle those failure modes
separately, using the EZProxyCGI handler as an example; the default
behavior for other RemoteAuth handlers is unchanged.

Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Open-ILS/src/perlmods/lib/OpenILS/WWW/RemoteAuth.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/RemoteAuth/EZProxyCGI.pm
Open-ILS/src/sql/Pg/150.remoteauth.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.remoteauth-more-error-codes.sql [new file with mode: 0644]
Open-ILS/src/templates/remoteauth/ezproxycgi/error.tt2