folio-labs / folio-order-import-tool

Tool that imports a MARC record to create an order. This workaround is needed until FOLIO supports importing MARC records to create orders.
Apache License 2.0
5 stars 3 forks source link

Populate assignTo field from HTTP auth username #82

Closed maccabeelevine closed 2 months ago

maccabeelevine commented 3 months ago

We have multiple users accessing this webapp, and want to distinguish who is creating the orders. The order's "created by" info is tied to the OKAPI user, which is configured globally for the deployment and not helpful. There is an "assigned to" field in FOLIO orders which can work for this purpose.

To determine who is using the app, this PR assumes that the web server is using HTTP authentication and passing the username via a particular header.