PASTAplus / DataPortal

EDI Data Portal
3 stars 3 forks source link

Cookies with double-quoted values are not handled correctly #143

Open rogerdahl opened 1 month ago

rogerdahl commented 1 month ago

After transition from Flask to FastAPI in Auth, cookies from Auth can now have double-quoted values. These are correct according to the RFC, but the quotes are incorrectly included in the final value extracted from the cookies in the Portal. This is due to the cookies being parsed 'manually' via string manipulation in the Portal. This ticket is to move over to using standard libraries for this task, which causes double-quoted values to be parsed correctly.

This change must be active in the Portal in production before moving the FastAPI based version of Auth into production.