RockefellerArchiveCenter / aurora

A Django web application to receive, virus check and validate transfers of digital archival records, and allow archivists to appraise and accession those records.
http://projectelectron.rockarch.org/
MIT License
26 stars 6 forks source link

Adjust cognito implementation to allow login via localhost #670

Closed HaSistrunk closed 4 months ago

HaSistrunk commented 4 months ago

Describe the bug

When a user builds aurora locally and goes to localhost:8000 to access the UI, cognito won't allow signing in. This may not be something we solve in the Aurora code, but filing an issue here to track resolution either way.

To reproduce

Steps to reproduce the behavior:

  1. Run docker-compose up
  2. Go to localhost:8000
  3. See url redirect to cognito user pool
  4. See error

Expected behavior

To allow for local development, the user should be able to sign in or in some way access the Aurora UI in the browser.

Error message or screenshots

image

Impact on your work

Blocks UI development.

helrond commented 4 months ago

@HaSistrunk There's a section of the README that addresses this. Open to suggestions for additions/subtractions/reorganization. That README is pretty long and it might be good to rethink how it's broken up.

HaSistrunk commented 4 months ago

@HaSistrunk There's a section of the README that addresses this. Open to suggestions for additions/subtractions/reorganization. That README is pretty long and it might be good to rethink how it's broken up.

Gotcha. The middleware configs mentioned in the README don't exactly map to what I'm seeing in settings.py. I can take a crack at making sure the README is easy to follow for this.