Skip to content

feat: add oms authentication#452

Merged
Dallas98 merged 18 commits intomainfrom
add-oms-authentication
Mar 26, 2026
Merged

feat: add oms authentication#452
Dallas98 merged 18 commits intomainfrom
add-oms-authentication

Conversation

@MoeexT
Copy link
Copy Markdown
Contributor

@MoeexT MoeexT commented Mar 26, 2026

No description provided.

loveTsong and others added 18 commits March 12, 2026 15:46
- Extracted user name retrieval logic from filter method into dedicated getUserNameFromOms method
- Simplified filter method by delegating user name retrieval
- Added initialization log in constructor
- Improved code maintainability and testability
- Add REAL_IP_HEADER_KEY constant for X-Real-Ip header
- Add getRealIp method to extract real client IP from various proxy headers
- Support X-Forwarded-For, X-Real-IP, Proxy-Client-IP, WL-Proxy-Client-IP headers
- Handle multiple IPs in X-Forwarded-For header by taking the first one
- Set real IP to request header when calling OMS authentication API
@Dallas98 Dallas98 merged commit 5ea214d into main Mar 26, 2026
11 checks passed
@MoeexT MoeexT deleted the add-oms-authentication branch March 28, 2026 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants