Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!(frontend): reload the page on login / logout success (#2432) (CP: 24.4) #2481

Merged
merged 1 commit into from
May 27, 2024

Conversation

vaadin-bot
Copy link
Collaborator

No description provided.

* refactor: prefer full page reload instead of AJAX request on logout

* Revert "refactor: prefer full page reload instead of AJAX request on logout"

This reverts commit 47880c1.

* fix: reload the page on login / logout success

* fix: restore Spring CSRF handling

* fix: normalize redirect as path

* test: prevent flackyness of parallel security tests

* fix(frontend): support context path in redirects

* chore: cleanup

* test(security): verify server-side logout redirect location

* test(security): make tests more reliable

* fix: normalize default redirect URL

* test(security): expect page reload from API

* chore: Java formatting

* fix: more accurate normalize url

* test(security): extra wait for page load

* test(security): extra wait for page load

* test(security): extra wait for page load

* test(security): more explicit load waiting

* chore: cleanup

* test(security): fix load waiting

* chore: Java formatting

* test: add implicit wait

* test: rollback asserting path, use builtin wait for main-view

* test: assertin path using script

* fix: reload with url mapping

* test: wait for invalid session reloads

* chore: remove test logger

* test: extra wait on open

* Revert "test: prevent flackyness of parallel security tests"

This reverts commit 77721ae.

* fix(frontend): prevent following requests when pageReloadNavigation is in use

* Revert "test: add implicit wait"

This reverts commit ed7d66d.

* feat!(frontend): onSuccess login / logout callbacks for custom after-flows

* test: use onSuccess callbacks

* test: wait for load when asserting current URL

* test: apply url mapping to logout path

* chore(frontend): remove unnecessary .toString()

* feat(frontend): support URL in login / logout options

---------

Co-authored-by: Anton Platonov <platosha@gmail.com>
Co-authored-by: Soroosh Taefi <taefi.soroosh@gmail.com>
Copy link

sonarcloud bot commented May 27, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

codecov bot commented May 27, 2024

Codecov Report

Attention: Patch coverage is 67.85714% with 9 lines in your changes are missing coverage. Please review.

Please upload report for BASE (24.4@598ee97). Learn more about missing BASE report.

Files Patch % Lines
packages/ts/frontend/src/Authentication.ts 73.07% 4 Missing and 3 partials ⚠️
packages/ts/react-auth/src/useAuth.tsx 0.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             24.4    #2481   +/-   ##
=======================================
  Coverage        ?   95.01%           
=======================================
  Files           ?       66           
  Lines           ?     4557           
  Branches        ?      661           
=======================================
  Hits            ?     4330           
  Misses          ?      183           
  Partials        ?       44           
Flag Coverage Δ
unittests 95.01% <67.85%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@platosha platosha merged commit e604146 into 24.4 May 27, 2024
15 checks passed
@platosha platosha deleted the cherry-pick-2432-to-24.4-1716806041493 branch May 27, 2024 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants