swagger-api / swagger-api/swagger-ui

Bearer Token input on the popup dynamically

Open
#7,155 18 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 need to generate the input bearer token on the popup irrespective of the spec uploaded. Which means in all cases i need bearerAuth (http, Bearer) input type in the popup. I found few reference in .NET technology but not on swagger-UI library itself. Is it possible and recommended? Can you please help on this?

image

https://mattfrear.com/2018/07/21/add-an-authorization-header-to-your-swagger-ui-with-swashbuckle-revisited/
https://ppolyzos.com/2017/10/30/add-jwt-bearer-authorization-to-swagger-and-asp-net-core/

thank you
Dhina

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

No repository file or test is named. Start by tracing the Swagger UI authorization popup and how it reads the uploaded OpenAPI security definitions; clarify the expected behavior when no bearerAuth definition exists, then identify the relevant tests needed to verify the selected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.