C2DH / journal-of-digital-history

frontend app for our Digital Journal
GNU General Public License v3.0
19 stars 4 forks source link

implement django session-based Auth to Share authentication with backend #515

Closed danieleguido closed 1 year ago

danieleguido commented 1 year ago

Documentation: Frontend served separately (same domain)

With this approach, we'll build the frontend and serve it up separately from the Django app on the same domain. We'll use Docker and Nginx to serve up both apps on the same domain locally.

See also example code

@eliselavy some steps require actions on the backend

danieleguido commented 1 year ago

backend: merged PR https://github.com/C2DH/journal-of-digital-history-backend/pull/178

danieleguido commented 1 year ago

If the user is logged in in admin, it nows output the correct username in dev vm:

Screenshot 2023-02-17 at 12 07 50