PostgREST 0.4 released(github.com) |
PostgREST 0.4 released(github.com) |
On the minus side, the changes to the authentication system feel kinda heavy. For those who haven't tried it, PostgREST uses JWTs for setting the role. Formerly, it would generate the JWT for you from a Postgresql custom data type that held the values you wanted in the token. Now, the JWT generation is stripped out, forcing you to generate them in Postgresql, so you have to add Postgresql extensions to support the cryptography and JWT generation, plus store the JWT secret in Postgresql somewhere also.
Also, I'm still not sure what's the deal with changing the header for getting a singular response from prefer to accept.