Spring Authorization Server should provide native, configurable support for hashing long-lived credentials (specifically OAuth2RefreshToken)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- authentication, backend, security
Hướng nghiên cứu
Bắt đầu với OAuth2RefreshTokenAuthenticationProvider, OAuth2TokenRevocationAuthenticationProvider và OAuth2TokenIntrospectionAuthenticationProvider, sau đó lần theo cách chúng sử dụng OAuth2AuthorizationService và thực hiện so sánh token. Xem xét cách các mã ủy quyền và refresh token được lưu trữ bền vững và xác minh. Được xem là hoàn tất khi việc băm và xác minh có thể cấu hình bao quát các thông tin xác thực đã nêu mà không yêu cầu lưu trữ dạng văn bản thuần túy.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Expected Behavior
Spring Authorization Server should provide native, configurable support for hashing long-lived credentials (specifically OAuth2RefreshToken and authorization codes) at rest using a pluggable mechanism similar to PasswordEncoder. The persistence layer should store cryptographic hashes (e.g., SHA-256), and authentication providers should verify incoming tokens against these hashes without requiring plain-text storage.
Current Behavior
Authentication providers (OAuth2RefreshTokenAuthenticationProvider, OAuth2TokenRevocationAuthenticationProvider, and OAuth2TokenIntrospectionAuthenticationProvider) perform a strict plain-text .equals() comparison between the incoming token and the value retrieved from OAuth2AuthorizationService. As a result, raw tokens must be stored in plaintext within the database.
Context
How this has affected you / What you are trying to accomplish: Trying to harden the authorization server implementation against database leaks. Storing long-lived tokens in plaintext violates standard security hardening guidelines for data at rest. Additionally, indexing large plaintext token strings in relational databases creates performance bottlenecks compared to fixed-length hashes.
What other alternatives have you considered: Relying solely on short token expiration or storing tokens in an external key-value store, which increases architectural complexity.
Are you aware of any workarounds: Yes, developers currently have to implement fragile workarounds such as overriding OAuth2AuthorizationService.findByToken() to dynamically inject raw mock tokens into the domain model, or entirely unregistering and rewriting core AuthenticationProvider implementations.
- Ngôn ngữ chính
- Java
- Star
- 9.7k
- Fork
- 6.4k
- Merge trung bình
- 3 giờ 11 phút
- Pull request đã merge (30 ngày)
- 19
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của spring-projects/spring-security
-
Update spring-ldap to 4.0.7Đang mởtype: dependency-upgrade
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
spring-projects/spring-security#20057 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Update micrometer to 1.16.9Đang mởtype: dependency-upgrade
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
spring-projects/spring-security#20056 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Update spring-ldap to 4.1.3Đang mởtype: dependency-upgrade
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
spring-projects/spring-security#20055 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Update micrometer to 1.17.3Đang mởtype: dependency-upgrade
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
spring-projects/spring-security#20054 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Update spring-ldap to 4.2.0Đang mởtype: dependency-upgrade
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
spring-projects/spring-security#20053 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của spring-projects/spring-security
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
langchain4j/langchain4j#7068 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Mend: dependency security vulnerability untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
opensearch-project/k-NN#3693 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Disk full for windows GH actionĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Encrypted PDF portfolios show an empty portfolio panelCó thể đã có người làm @christophmertins đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Stirling-Tools/Stirling-PDF#8864 · 1 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
CodingDocs/awesome-java#41 · 1 bình luận ·