PostgREST / postgrest-docs

This repo is archived and will be merged into postgrest/postgrest soon.
http://postgrest.org
MIT License
365 stars 164 forks source link

How-to for using JWT in cookies #208

Open steve-chavez opened 5 years ago

steve-chavez commented 5 years ago

Use the snippet in https://github.com/PostgREST/postgrest/issues/773#issuecomment-275602759

mckinlde commented 7 months ago

Has there been any more work on this? Is a proxy server still mandatory, or can postgrest be configured to use a cookie header for its JWT?

I am pretty confident I can change the /login endpoint to respond with a set-cookie header to store the JWT; once I've done that how do I ensure the rest of the endpoints in postgrest are checking the cookie header for a JWT?