Override JWTRefreshMiddleware in KeycloakAuthManager to handle Keycloak JWT Cookies - #70707
Draft
stephen-bracken wants to merge 6 commits into
Draft
Override JWTRefreshMiddleware in KeycloakAuthManager to handle Keycloak JWT Cookies#70707stephen-bracken wants to merge 6 commits into
stephen-bracken wants to merge 6 commits into
Conversation
KeycloakAuthManager.get_user_from_token(), add request object to resolve_user_from_token()
stephen-bracken
force-pushed
the
pass-request
branch
4 times, most recently
from
July 29, 2026 23:38
1c0cc45 to
1a9cf0d
Compare
2 tasks
stephen-bracken
force-pushed
the
pass-request
branch
3 times, most recently
from
July 30, 2026 10:15
bf78928 to
3669a91
Compare
KeycloakAuthManager.get_user_from_token(), add request object to resolve_user_from_token()
stephen-bracken
force-pushed
the
pass-request
branch
4 times, most recently
from
July 31, 2026 14:56
d225f24 to
bf8b4ff
Compare
2 tasks
stephen-bracken
force-pushed
the
pass-request
branch
from
July 31, 2026 15:41
bf8b4ff to
7cdf80a
Compare
added 6 commits
July 31, 2026 18:32
…refresh_middleware`
stephen-bracken
force-pushed
the
pass-request
branch
from
July 31, 2026 18:46
7cdf80a to
5909a7c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
related: #70550
Get Keycloak JWT from request cookies in get_user_from_token
JWTRefreshMiddlewareinitialisation toBaseAuthManager.get_fastapi_middlewares()to make it overrideableKeycloakJWTRefreshMiddlewaremiddleware that extends theJWTRefreshMiddlewareby getting and setting the Keycloak JWTs for the user from the cookiesWas generative AI tooling used to co-author this PR?