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

[STCOR-876] Remember requested URL path on Login (Regression bug) #1526

Merged
merged 2 commits into from
Aug 23, 2024

Conversation

ryandberger
Copy link
Member

  • Refs STCOR-876.
  • Ensure setUnauthorizedPathToSession is called in AuthnLogin to remember requested path on login. I added a more explicit default path handler when user is unauthorized. I also switched from useEffect to useLayoutEffect in AuthnLogin so that logic is called before anything on the UI is drawn.
  • Also adding window.location.search to session storage so URL params are remembered.

Copy link

Jest Unit Test Results

279 tests  ±0   279 ✅ ±0   59s ⏱️ -1s
 54 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 9d0061b. ± Comparison against base commit 54e5eff.

Copy link

Bigtest Unit Test Results

192 tests  ±0   187 ✅ ±0   6s ⏱️ ±0s
  1 suites ±0     5 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 9d0061b. ± Comparison against base commit 54e5eff.

Copy link

sonarcloud bot commented Aug 23, 2024

@aidynoJ
Copy link

aidynoJ commented Aug 23, 2024

LGTM. I'm okay with using useLayoutEffect to store items in session storage, as the component returns a redirect on single tenant.

@ryandberger ryandberger merged commit d3f2c20 into keycloak-ramsons Aug 23, 2024
26 checks passed
@ryandberger ryandberger deleted the STCOR-876 branch August 23, 2024 16:31
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.

2 participants