Skip to content

jwt role with special characters #2281

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

You must be logged in to vote

To address a use case where the role in the claim contains special characters such as "-" and "." which are not allowed in postgres roles,

You can use those special characters in a pg role:

postgres=# create role "look-at.myrole";
CREATE ROLE

Are you seeing an error when trying that type of role through PostgREST?

Replies: 1 comment 1 reply

Comment options

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

Answer selected by bmgante
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