swagger-api / swagger-api/swagger-ui

client_credentials and authorization_code cannot be used simultaneously

Open
#8,199 3 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

In UseSwaggerUI calling OAuthUsePkce makes the client_secret textbox disappear for all flows. It is therefore impossible to use client_credentials (which requires a client_secret) and authorization_code (which requires this field to be absent) at the same time.

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 the UseSwaggerUI and OAuthUsePkce entry points in the JavaScript UI code and inspect how the selected OAuth flows control the client_secret field. Verify the behavior for both client_credentials and authorization_code together, ensuring each flow receives the appropriate field treatment.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
authentication, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.