Skip to content

I need to disable authorization from Postgrest completely. #2766

Answered by steve-chavez
vjanz asked this question in Q&A
Discussion options

You must be logged in to vote

PGRST_AUTH_JWT=off

There's no such option.

The problem is that my authorization service uses the Authorization header as well and now that one is interfering with the Authorization header that Postgrest has

How about stripping the Authorization header from the upstream request to PostgREST?

Then you could set the PGRST_DB_ANON_ROLE and just use a single role for all requests.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wolfgangwalther
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2758 on April 24, 2023 22:04.