Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.
This repository was 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

Description

@skesani

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions