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

DRYD-1242: Fix unnecessary re-authorization. #193

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

ray-lee
Copy link
Member

@ray-lee ray-lee commented Oct 2, 2023

What does this do?

This fixes a bug (introduced with the Spring Security upgrade/switch to OAuth authorization code grant) where the logged in user is not updated properly in the redux store. This resulted in unnecessary re-authorization when a valid stored token was present.

Why are we doing this? (with JIRA link)

This is part of the Spring Security upgrade: https://collectionspace.atlassian.net/browse/DRYD-1242

How should this be tested? Do these changes have associated tests?

Log in, browse to a record, and reload the browser. Upon reload, re-authorization should not occur (there is no request to the /cspace-services/oauth2/authorize endpoint, and no resulting redirect to the /authorized page in the UI).

Dependencies for merging? Releasing to production?

None.

Has the application documentation been updated for these changes?

n/a

Did someone actually run this code to verify it works?

@ray-lee ran this locally.

@codecov
Copy link

codecov bot commented Oct 2, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Files Coverage Δ
src/actions/cspace.js 100.00% <ø> (ø)
src/actions/login.js 56.79% <100.00%> (ø)
src/containers/pages/AuthorizedPageContainer.js 100.00% <ø> (ø)
src/reducers/user.js 100.00% <100.00%> (ø)
src/components/pages/AuthorizedPage.jsx 18.75% <0.00%> (ø)

📢 Thoughts on this report? Let us know!.

@ray-lee ray-lee merged commit 20d0f92 into collectionspace:master Oct 2, 2023
2 of 3 checks passed
@ray-lee ray-lee deleted the fix-reauth branch October 2, 2023 22:45
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.

1 participant