Skip to content

Make KeycloakJWTMiddleware inherit from JWTRefreshMiddleware - #70707

Draft
stephen-bracken wants to merge 2 commits into
apache:mainfrom
stephen-bracken:pass-request
Draft

Make KeycloakJWTMiddleware inherit from JWTRefreshMiddleware#70707
stephen-bracken wants to merge 2 commits into
apache:mainfrom
stephen-bracken:pass-request

Conversation

@stephen-bracken

@stephen-brackenstephen-bracken commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

related: #70550

Get Keycloak JWT from request cookies in get_user_from_token

Make KeycloakAuthManager._get_jwt_middleware() return KeycloakJWTMiddleware and inherit dispatch() from JWTRefreshMiddleware to maintain the interface.

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)
  • No

@stephen-brackenstephen-bracken changed the title Resolve Keycloak tokens from request cookies in get_user_from_token()Resolve Keycloak tokens from request cookies in KeycloakAuthManager.get_user_from_token(), add request object to resolve_user_from_token()Jul 29, 2026
@stephen-bracken
stephen-brackenforce-pushed the pass-request branch 4 times, most recently from 1c0cc45 to 1a9cf0dCompareJuly 29, 2026 23:38
@stephen-bracken
stephen-brackenforce-pushed the pass-request branch 3 times, most recently from bf78928 to 3669a91CompareJuly 30, 2026 10:15
@stephen-brackenstephen-bracken changed the title Resolve Keycloak tokens from request cookies in KeycloakAuthManager.get_user_from_token(), add request object to resolve_user_from_token()Override JWTRefreshMiddleware in KeycloakAuthManager to handle Keycloak JWT CookiesJul 30, 2026
@stephen-bracken
stephen-brackenforce-pushed the pass-request branch 4 times, most recently from d225f24 to bf8b4ffCompareJuly 31, 2026 14:56
@stephen-bracken
stephen-brackenforce-pushed the pass-request branch 2 times, most recently from 7cdf80a to 5909a7cCompareJuly 31, 2026 18:46
@stephen-bracken
stephen-brackenforce-pushed the pass-request branch 6 times, most recently from 4231c16 to 7064369CompareAugust 12, 2026 19:21
@stephen-brackenstephen-bracken changed the title Override JWTRefreshMiddleware in KeycloakAuthManager to handle Keycloak JWT CookiesMake KeycloakJWTMiddleware inherit from JWTRefreshMiddlewareAug 12, 2026
@stephen-bracken
stephen-brackenforce-pushed the pass-request branch 2 times, most recently from 2b5671d to 95a2c08CompareAugust 12, 2026 19:30
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@stephen-bracken