swagger-api / swagger-api/swagger-ui

Validate access token when click authorize button on swagger ui

Open
#5,890 2 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I have on api which generates the access token.
We have other apis as well which will use the generated token, I want to validate the token when click on authorize button. If token generated using the first api is not passed correctly, It shouldn't let the user to use the try out feature.
Any lead you be much appreciated.

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 tracing Swagger UI's authorize-button flow and how it stores or applies the access token, then reproduce the behavior with an invalid or incorrectly passed token. Confirm the expected authorization response and try-it-out behavior with the project’s existing tests or manual UI checks; the issue does not name specific files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, openapi
Domain
authentication, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.