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-bracken stephen-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-bracken stephen-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-bracken force-pushed the pass-request branch 4 times, most recently from 1c0cc45 to 1a9cf0d Compare July 29, 2026 23:38
@stephen-bracken
stephen-bracken force-pushed the pass-request branch 3 times, most recently from bf78928 to 3669a91 Compare July 30, 2026 10:15
@stephen-bracken stephen-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 Cookies Jul 30, 2026
@stephen-bracken
stephen-bracken force-pushed the pass-request branch 4 times, most recently from d225f24 to bf8b4ff Compare July 31, 2026 14:56
@stephen-bracken
stephen-bracken force-pushed the pass-request branch 2 times, most recently from 7cdf80a to 5909a7c Compare July 31, 2026 18:46
@stephen-bracken
stephen-bracken force-pushed the pass-request branch 6 times, most recently from 4231c16 to 7064369 Compare August 12, 2026 19:21
@stephen-bracken stephen-bracken changed the title Override JWTRefreshMiddleware in KeycloakAuthManager to handle Keycloak JWT Cookies Make KeycloakJWTMiddleware inherit from JWTRefreshMiddleware Aug 12, 2026
@stephen-bracken
stephen-bracken force-pushed the pass-request branch 2 times, most recently from 2b5671d to 95a2c08 Compare August 12, 2026 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant