Bug #13416

Feature #13383: Feature: CAS single sign-on

AtoM rejects Archivematica DIP Upload when CAS is enabled

Added by Peter Van Garderen about 1 year ago. Updated about 1 year ago.

Status:QA/ReviewStart date:09/09/2020
Priority:MediumDue date:
Assignee:Tessa Walsh% Done:

0%

Category:Archivematica integration
Target version:Release 2.7.0
Google Code Legacy ID: Tested version:
Sponsored:Yes Requires documentation:No

Description

AtoM ignores the username and password authentication configured for DIP Upload in Archivematica and, instead, does a 302 redirect to the CAS Server for authentication which fails silently. The DIP however, is copied to the /tmp directory in AtoM.

Here is an error log from the Archivematica server sending the DIP upload:

Sep  9 01:04:12 larch python: =============== STDERR ===============
Sep  9 01:04:12 larch python: upload-qubit_v0.0: ERROR     2020-09-09 08:04:10,407  archivematica.upload.qubit.log:66  [uploadDIP] Target: a1a1
Sep  9 01:04:12 larch python: upload-qubit_v0.0: ERROR     2020-09-09 08:04:10,407  archivematica.upload.qubit.log:66  [uploadDIP] rsync --protect-args -rltz -P --chmod=ugo=rwX /var/archivematica/sharedDirectory/watchedDirectories/uploadDIP/mamedfin-dipupload-test1-d079e3b8-d6b0-41e6-9be1-7fcbd80d5f20 dogwood.archives.sfu.ca:/tmp
Sep  9 01:04:12 larch python: upload-qubit_v0.0: ERROR     2020-09-09 08:04:10,407  archivematica.upload.qubit.log:66  [uploadDIP] Rsync output is being saved in /tmp/tmpHwxNru
Sep  9 01:04:12 larch python: upload-qubit_v0.0: ERROR     2020-09-09 08:04:12,450  archivematica.upload.qubit.log:66  [uploadDIP] Sending... 100 (ETA: 0:00:00)
Sep  9 01:04:12 larch python: upload-qubit_v0.0: ERROR     2020-09-09 08:04:12,452  archivematica.upload.qubit.log:66  [uploadDIP] About to deposit to: https://dogwood.archives.sfu.ca
Sep  9 01:04:12 larch python: upload-qubit_v0.0: ERROR     2020-09-09 08:04:12,501  archivematica.upload.qubit.log:66  [uploadDIP] > Response code: 302
Sep  9 01:04:12 larch python: upload-qubit_v0.0: ERROR     2020-09-09 08:04:12,501  archivematica.upload.qubit.log:66  [uploadDIP] > Location: https://cas.sfu.ca/cas/login?service=https%3A%2F%2Fdogwood.archives.sfu.ca%2Fsword%2Fdeposit%2Fa1a1
Sep  9 01:04:12 larch python: upload-qubit_v0.0: ERROR     2020-09-09 08:04:12,501  archivematica.upload.qubit.log:66  [uploadDIP] > Content received: <html><head><title>CAS Authentication wanted!</title></head><body><h1>CAS Authentication wanted!</h1><p>You should already have been redirected to the CAS server. Click <a href="https://cas.sfu.ca/cas/login?service=https%3A%2F%2Fdogwood.archives.sfu.ca%2Fsword%2Fdeposit%2Fa1a1">here</a> to continue.</p></body></html>
Sep  9 01:04:12 larch python: upload-qubit_v0.0: ERROR     2020-09-09 08:04:12,502  archivematica.upload.qubit.log:66  [uploadDIP] Deposited asynchronously, AtoM is processing the DIP in the job queue
Sep  9 01:04:12 larch python: =============== END STDERR ===============

Also available in: Atom PDF