Swagger UI "Authorize" button does not inject Bearer token in header (Spring Boot 4 + springdoc 3.1.1)
メンテナーはふだん 9 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 54/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- java, spring-boot
- 領域
- api, authentication
調査の方向性
Start with the @SecurityScheme configuration and the springdoc-openapi-starter-webmvc-ui 3.1.1 setup described in the issue; reproduce it with Spring Boot 4.0.x and inspect the request sent after authorizing. Done means the JWT is sent in the Authorization header on subsequent requests rather than stored only in a cookie.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
When using springdoc-openapi-starter-webmvc-ui version 3.1.1 with Spring Boot 4.0.x, the "Authorize" button in Swagger UI accepts the JWT token but does not inject it into the Authorization header on subsequent requests. Instead, the token is stored in a cookie, and no Authorization header is sent.
To Reproduce
- Configure
@SecuritySchemewith typeHTTP, schemebearer, bearerFormatJWT:
@Configuration
@OpenAPIDefinition(info = @Info(title = "API", version = "v1"))
@SecurityScheme(
name = "bearerAuth",
type = SecuritySchemeType.HTTP,
scheme = "bearer",
bearerFormat = "JWT"
)
public class OpenApiConfig {}
- 主要言語
- Java
- スター
- 3.7k
- フォーク
- 605
- 平均マージ
- 9日 11時間
- マージ済み PR(30日)
- 14
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
springdoc/springdoc-openapi のほかの issue
-
enhancement upstream
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
springdoc/springdoc-openapi#3324 · コメント 2 件 ·
メンテナーはふだん 9 日以内に返信
-
enhancement upstream
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
springdoc/springdoc-openapi#3309 · コメント 4 件 · リアクション 1 件 ·
メンテナーはふだん 9 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
springdoc/springdoc-openapi#3404 · コメント 1 件 ·
メンテナーはふだん 9 日以内に返信
springdoc/springdoc-openapi の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
wpilibsuite/SystemcoreTesting#446 ·
メンテナーはふだん 1 日以内に返信
-
frontend quality-assurance
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
Paul-Austin-Oswego-CSC480-HCI521/gift-app#212 ·
メンテナーはふだん 1 日以内に返信
-
Mend: dependency security vulnerability
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
Docs: AGENTS.md agent/ module-map bullet missing AgentWriteRules — the deny-by-default write gateオープンdocumentation hermes-queue
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
chrisalunlloyd2-sudo/mindpalace#334 ·
メンテナーはふだん 1 日以内に返信
-
needs-area-label
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 2 日以内に返信