Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Add DPoP token type mapping in OAuth2AccessTokenResponseBodyExtractor - #20191

Open
mohit32886 wants to merge 1 commit into
spring-projects:mainfrom
mohit32886:gh-20189-dpop-token-type-extractor
Open

mohit32886 wants to merge 1 commit into
spring-projects:mainfrom
mohit32886:gh-20189-dpop-token-type-extractor

Conversation

@mohit32886

Copy link
Copy Markdown

Closes gh-20189

This PR adds case-insensitive DPoP token type mapping in OAuth2AccessTokenResponseBodyExtractor, matching the behavior of DefaultMapOAuth2AccessTokenResponseConverter.

Summary of Changes

  • Map DPoP (case-insensitive) to OAuth2AccessToken.TokenType.DPOP in OAuth2AccessTokenResponseBodyExtractor.
  • Add unit tests in OAuth2BodyExtractorsTests covering both "DPoP" and "dpop" token types.

Verification

  • Verified formatting and checks via ./gradlew :spring-security-oauth2-core:format and ./gradlew :spring-security-oauth2-core:check (279 tests passing).
  • Verified reactive token response clients via ./gradlew :spring-security-oauth2-client:test --tests "*WebClientReactive*TokenResponseClientTests" (123 tests passing).

Map token_type "DPoP" (case-insensitively) to OAuth2AccessToken.TokenType.DPOP in OAuth2AccessTokenResponseBodyExtractor, matching DefaultMapOAuth2AccessTokenResponseConverter.

Closes spring-projectsgh-20189

Signed-off-by: Mohit Gupta <mohit32886@gmail.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 30, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OAuth2AccessTokenResponseBodyExtractor does not map the DPoP token type

2 participants