This allows Shibboleth auth to be switched on and off from the environment using ARCHIVEMATICA_DASHBOARD_SHIBBOLETH_AUTHENTICATION. Enabling this setting will switch on Shibboleth middleware and other settings.
It also toggles an ALLOW_USER_EDITS setting so that users can be editable and change their passwords under normal (model) authentication, but see a read only version of that with Shibboleth. This is a concept that could be extended to other forms of remote authentication. Some of the work here is restoring code that was removed in #5 and making it conditional on ALLOW_USER_EDITS.
I've also got the tests passing again here - changes to the welcome screen logic had been breaking a few of them, so some extra setup was required. Note that the travis job doesn't pass due to flake8 issues in another part of the code (I see that's already being addressed in #17 so will leave it alone)
This allows Shibboleth auth to be switched on and off from the environment using
ARCHIVEMATICA_DASHBOARD_SHIBBOLETH_AUTHENTICATION
. Enabling this setting will switch on Shibboleth middleware and other settings.It also toggles an
ALLOW_USER_EDITS
setting so that users can be editable and change their passwords under normal (model) authentication, but see a read only version of that with Shibboleth. This is a concept that could be extended to other forms of remote authentication. Some of the work here is restoring code that was removed in #5 and making it conditional on ALLOW_USER_EDITS.I've also got the tests passing again here - changes to the welcome screen logic had been breaking a few of them, so some extra setup was required. Note that the travis job doesn't pass due to flake8 issues in another part of the code (I see that's already being addressed in #17 so will leave it alone)
See also https://github.com/JiscRDSS/rdss-archivematica/pull/25 and https://github.com/JiscRDSS/archivematica-storage-service/pull/6