Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

How to set the bearer token dynamically in graphql-spring-boot playground #929

Open
skesani opened this issue Mar 16, 2023 Discussed in #928 · 0 comments
Open

How to set the bearer token dynamically in graphql-spring-boot playground #929

skesani opened this issue Mar 16, 2023 Discussed in #928 · 0 comments

Comments

@skesani
Copy link

skesani commented Mar 16, 2023

Discussed in #928

Originally posted by skesani March 16, 2023
Hey All,

I am using playground embedded by accessing at root /playground, I am checking for a solution on how to set the bearer token based dynamically, current documentation shows, we can set the static token in .yml file like below, however i wanted to set the token programmatically since the token changes based on the user roles and when i navigate to /playground the token should set like below image, please let me know if this is possible? if so please provide a code sample for it. Thanks.

headers:
      Authorization: "Bearer <your-token>"

image

https://github.com/graphql-java-kickstart/graphql-spring-boot#enable-graphql-playground

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant