swagger-api / swagger-api/swagger-ui

JWT Token truncated

Open
#8,162 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
29k
Forks
9.3k
Avg merge
2d 23h
Merged PRs (30d)
25

Description

Hi, I have configured an OAuth2 SecuritySchemeType and it works correctly with a small JWT,
but when the size of JWT increase (for example because a user has a lot of information) when the api is called the token passed into parameter -H 'Authorization: Bearer JWT_TOKEN' is truncated.

Thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the OAuth2 request with a large JWT and inspect the generated curl Authorization header. Trace where the token is assembled or passed through the JavaScript client; done means the complete JWT is sent without truncation. The issue names no file or test to begin with.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, authentication
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.