thechillquil / smdg-demon-db

Automation of the SMDG TTRPG system's Demon Compendium for use with Roll20 and other software.
MIT License
0 stars 1 forks source link

feat: Add initial security for database #6

Closed jimevans closed 2 years ago

jimevans commented 2 years ago

This commit adds the initial pass at security for the SMDG demon compendium database. Notably, it allows browsing of all included data using both the UI and API, but should not allow creation, editing/updating, or deleting of data without properly logging into the system. This iteration does not do any session handling. Login tokens are passed by means of an http-only cookie for the UI, and should be passed via an Authentication header when using the API. Again, normal read-only use of the data contained within the compendium should not require logging in at all.

Notable implementation details: