You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to also be able to set the headers too. That would let me create clickable query links that also set {"Authorization": "Bearer {token}"} so that I can easily run authenticated queries without having to paste the auth token myself for debugging.
Of course, the plugin would look something like this:
I think specifying auth tokens via query params is very risky; but that’s by-the-bye - I have no issue with someone implementing control of headers (I’m surprised we don’t already have it infact). I’m having to be ruthless with tasks pre-v5.0 so this will be a post 5.0 feature unless someone else builds it.
Feature description
Ruru supports programmatically setting and reading the query and variables UI panes:
crystal/grafast/ruru-components/src/interfaces.ts
Lines 47 to 65 in 0f7fe20
But it'd be nice if it also let you read/write the headers pane too.
Motivating example
Like you showed on Discord, you can write a grafserv plugin that sets the query and variables from ruru url:
crystal/postgraphile/postgraphile/graphile.config.ts
Lines 110 to 166 in fbb1b31
I'd like to also be able to set the headers too. That would let me create clickable query links that also set
{"Authorization": "Bearer {token}"}
so that I can easily run authenticated queries without having to paste the auth token myself for debugging.Of course, the plugin would look something like this:
The text was updated successfully, but these errors were encountered: