swagger-api / swagger-api/swagger-ui
JWT Token truncated
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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