Skip to content

How can i use it in django projects and use it with django's jwt #1777

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

You must be logged in to vote

Hey @hzjux001,

PostgREST requirements for the JWT are:

  • It must contain a role claim that maps to a PostgreSQL role(ref)
  • It should be able to decode it with the jwt-secret

So if django(or any other framework) produces the JWT, then it should share its secret with PostgREST plus construct the JWT with a role claim.

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 #1776 on March 25, 2021 16:59.