Skip to content

Bypass token validation #2161

Discussion options

You must be logged in to vote

Can you do one of the following?

  • Remove the Authorization header from the request in the gateway
  • Add a custom header with the role extracted from the token to the request
  • Run postgrest with a db-pre-request function which will then set the role from the header

or

  • Replace the Authorization header with another header with the same token, but a different signature at the api gateway
  • Use a simple, non-rotating secret for that internal signature, which you set jwt-secret to

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
Answer selected by crisclacerda
Comment options

You must be logged in to vote
1 reply
@wolfgangwalther
Comment options

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