Find solution for developing in graphiql with RLS-Auth in place #4
Labels
No labels
Documentation
Infrastructure
Redaktions-App
User-App
backend
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
Effort
High
Effort
Low
Effort
Medium
Prio
High
Prio
Low
Prio
Medium
Type
Bug
Type
Feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: NB-Public/kandimat#4
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When RLS-Auth ist in place the graphiql frontend for testing and building queries is not available out of the box. There are some possibilities to solve this problem.
See this Github issue for more information about the possibilities.
For us we have to decide:
Let's discuss on that :-)
Luckily there is the postgraphile option
--enhance-graphiql
wich is perfectly fine in dev mode. It deploys a much more feature-rich graphiql version which, most importantly includes a headers section.Authentication in graphiql resolves to calling the authenticate mutation and copying the jwt string into the header section.
This change is included in #3
From my point of view, this issue is thereby resolved.