dromara / dromara/forest

[Suggestion]: oauth2功能未考虑到header无前缀情况

Open
#261 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
1.9k
Forks
241
PR merge metrics
No merged PRs in 30d

Description

### 您的功能建议是想解决什么问题?

oauth2功能:
com.cars.ticket.common.forest.TicketOAuth2.TokenAt 枚举里HEADER不一定有前缀,但是代码却是写死的,无法配置

### 您希望看到什么解决方案:

希望能区分无前缀和未配置默认前缀,比如通过NULL或DEFAULT等枚举或其他方式区分

### 您有其他上下文或截图吗?

Image

### 您考虑过哪些替代方案:

_No response_

### 意向参与贡献

- [ ] 我有意向参与具体功能的开发实现并将代码贡献回到上游社区。

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading com.cars.ticket.common.forest.TicketOAuth2.TokenAt and trace how the OAuth2 header is assembled. Check how the current fixed prefix is applied, then define a configurable distinction between an absent prefix and the default prefix. Done means callers can represent both cases and the existing default behavior remains covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
authentication
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
66/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.