Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL invocation does not work with api key headers #2669

Closed
vishmi49 opened this issue Mar 18, 2024 · 2 comments · Fixed by wso2/apim-apps#608
Closed

GraphQL invocation does not work with api key headers #2669

vishmi49 opened this issue Mar 18, 2024 · 2 comments · Fixed by wso2/apim-apps#608
Assignees
Labels
Milestone

Comments

@vishmi49
Copy link

Description

GraphQL invocation does not work with api key headers. Currently custom header support for api-key header feature is implemented only for Rest apis.

And currently in the publisher portal a user can add custom headers for api keys for graphQL and it's not working for graphQL apis.

Screenshot 2024-03-18 at 12 29 06

Therefore the graphQL does not work with default api-keys which is working properly in 4.2.0 version.

API key header input box needs to be hidden for graphQL

Steps to Reproduce

  1. Login to publisher portal
  2. Create a graphql API and publish
  3. Select api keys under the run time tab ( note that user can add custom headers for api keys here)
  4. Login to the devportal.
  5. Subscribe to the api and generate api keys
  6. Invoke graphQL api with default api keys.

Affected Component

APIM

Version

4.3.0

Environment Details (with versions)

No response

Relevant Log Output

No response

Related Issues

No response

Suggested Labels

No response

@vishmi49 vishmi49 added Type/Bug Affected/APIM-4.3.0 BugFixing Tracks the bugs to be fixed for APIM 4.3.0 release Severity/Major labels Mar 18, 2024
@BLasan BLasan self-assigned this Mar 18, 2024
@BLasan
Copy link

BLasan commented Mar 19, 2024

Getting the below error

{
  "errors": [
    {
      "message": "Failed to fetch",
      "stack": "TypeError: Failed to fetch\n    at https://localhost:9443/devportal/site/public/dist/9920.9b2bb8b405df5085d453.bundle.js:2:183754\n    at Generator.next (<anonymous>)\n    at s (https://localhost:9443/devportal/site/public/dist/9920.9b2bb8b405df5085d453.bundle.js:2:183485)\n    at https://localhost:9443/devportal/site/public/dist/9920.9b2bb8b405df5085d453.bundle.js:2:183446\n    at new Promise (<anonymous>)\n    at r.<computed>.a.<computed> [as next] (https://localhost:9443/devportal/site/public/dist/9920.9b2bb8b405df5085d453.bundle.js:2:183398)\n    at https://localhost:9443/devportal/site/public/dist/9920.9b2bb8b405df5085d453.bundle.js:2:149199"
    }
  ]
}

@BLasan
Copy link

BLasan commented Mar 20, 2024

BLasan added a commit to BLasan/carbon-apimgt that referenced this issue Mar 21, 2024
@tharikaGitHub tharikaGitHub added this to the 4.3.0-Alpha2 milestone Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants