Authentication and refreshing schemas #3933
Unanswered
heinrichdude
asked this question in
Q&A
Replies: 2 comments 1 reply
-
I have the same problem with insomnia |
Beta Was this translation helpful? Give feedback.
1 reply
-
Guys, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have an GraphQL API that is protected by Keycloak, we have enable the basic authorization on our endpoints [Authorize], that will ensure a user is authenticated. This works well. However, we have issues with refreshing the schema in clients like Insomnia as well as using GraphQL codegen. We can easily resolve this with a auth request before the refresh schema request in Insomnia.
Our bigger problem at the moment is getting our codegen of our Typescript objects to work.
I am currently exploring getting a script together that would request an auth token and then pass that along to the codegen. Haven't found a way to do this successfully ... yet.
However, I am also wondering if there is a way, or would it be proper, to have a way to secure the GraphQL endpoints but allow the refresh schema to proceed without being authenticated.
Any advice would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions