Skip to content

Conversation

platosha
Copy link
Contributor

@platosha platosha commented Aug 1, 2025

See vaadin/hilla#3807, where the issue currently manifests.

VaadinSavedRequestAwareAuthenticationSuccessHandler isn't actually saved request aware unless RequestCache is correctly shared with it in the configuration, which VaadinSecurityConfigurer was failing to do due to order of events: authentication is configured before customizing request cache.

This change makes sure that VaadinDefaultRequestCache instance is set for VaadinSavedRequestAwareAuthenticationSuccessHandler during configuration.

See vaadin/hilla#3807, where the issue currently manifests.

VaadinSavedRequestAwareAuthenticationSuccessHandler isn't actually saved request aware unless RequestCache is correctly shared with it in the configuration, which VaadinSecurityConfigurer was failing to do due to order of events: authentication is configured before customizing request cache. This change makes sure that VaadinDefaultRequestCache instance is set for VaadinSavedRequestAwareAuthenticationSuccessHandler during configuration.
@platosha platosha added the hilla Issues related to Hilla label Aug 1, 2025
@platosha platosha requested review from mcollovati and heruan August 1, 2025 15:50
Copy link

sonarqubecloud bot commented Aug 1, 2025

Copy link

github-actions bot commented Aug 1, 2025

Test Results

1 237 files  ± 0  1 237 suites  ±0   1h 16m 22s ⏱️ + 1m 20s
8 494 tests + 1  8 434 ✅ + 1  60 💤 ±0  0 ❌ ±0 
8 870 runs  +11  8 801 ✅ +11  69 💤 ±0  0 ❌ ±0 

Results for commit db0dea5. ± Comparison against base commit e4f755f.

@platosha platosha requested a review from cromoteca August 4, 2025 07:34
@platosha platosha merged commit 827cd76 into main Aug 4, 2025
27 of 31 checks passed
@platosha platosha deleted the fix/typescript-login-redirect branch August 4, 2025 09:11
@vaadin-bot
Copy link
Collaborator

Hi @platosha and @platosha, when i performed cherry-pick to this commit to 24.9, i have encountered the following issue. Can you take a look and pick it manually?
Error Message:
Error: Command failed: git cherry-pick 827cd76
error: could not apply 827cd76... fix(vaadin-spring): enable client-side redirects for TypeScript login (#21980)
hint: After resolving the conflicts, mark them with
hint: "git add/rm ", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".

@vaadin-bot
Copy link
Collaborator

Hi @platosha and @platosha, when i performed cherry-pick to this commit to 24.8, i have encountered the following issue. Can you take a look and pick it manually?
Error Message:
Error: Command failed: git cherry-pick 827cd76
error: could not apply 827cd76... fix(vaadin-spring): enable client-side redirects for TypeScript login (#21980)
hint: After resolving the conflicts, mark them with
hint: "git add/rm ", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".

mcollovati pushed a commit that referenced this pull request Aug 4, 2025
…#21980)

See vaadin/hilla#3807, where the issue currently manifests.

VaadinSavedRequestAwareAuthenticationSuccessHandler isn't actually saved request aware unless RequestCache is correctly shared with it in the configuration, which VaadinSecurityConfigurer was failing to do due to order of events: authentication is configured before customizing request cache. This change makes sure that VaadinDefaultRequestCache instance is set for VaadinSavedRequestAwareAuthenticationSuccessHandler during configuration.
mcollovati pushed a commit that referenced this pull request Aug 4, 2025
…#21980)

See vaadin/hilla#3807, where the issue currently manifests.

VaadinSavedRequestAwareAuthenticationSuccessHandler isn't actually saved request aware unless RequestCache is correctly shared with it in the configuration, which VaadinSecurityConfigurer was failing to do due to order of events: authentication is configured before customizing request cache. This change makes sure that VaadinDefaultRequestCache instance is set for VaadinSavedRequestAwareAuthenticationSuccessHandler during configuration.
mcollovati added a commit that referenced this pull request Aug 4, 2025
…#21980) (#21984)

See vaadin/hilla#3807, where the issue currently manifests.

VaadinSavedRequestAwareAuthenticationSuccessHandler isn't actually saved request aware unless RequestCache is correctly shared with it in the configuration, which VaadinSecurityConfigurer was failing to do due to order of events: authentication is configured before customizing request cache. This change makes sure that VaadinDefaultRequestCache instance is set for VaadinSavedRequestAwareAuthenticationSuccessHandler during configuration.

Co-authored-by: Anton Platonov <anton@vaadin.com>
mcollovati added a commit that referenced this pull request Aug 4, 2025
…#21980) (#21985)

See vaadin/hilla#3807, where the issue currently manifests.

VaadinSavedRequestAwareAuthenticationSuccessHandler isn't actually saved request aware unless RequestCache is correctly shared with it in the configuration, which VaadinSecurityConfigurer was failing to do due to order of events: authentication is configured before customizing request cache. This change makes sure that VaadinDefaultRequestCache instance is set for VaadinSavedRequestAwareAuthenticationSuccessHandler during configuration.

Co-authored-by: Anton Platonov <anton@vaadin.com>
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.

3 participants