-
Notifications
You must be signed in to change notification settings - Fork 26
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-918: *BREAKING* remove token-based authentication code #1592
Conversation
Bigtest Unit Test Results189 tests ±0 184 ✅ ±0 6s ⏱️ ±0s Results for commit c4990bc. ± Comparison against base commit fa2ffcf. This pull request removes 5 and adds 3 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
Jest Unit Test Results 1 files ±0 62 suites ±0 1m 36s ⏱️ +2s Results for commit c4990bc. ± Comparison against base commit fa2ffcf. This pull request removes 1 test.
♻️ This comment has been updated with latest results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For reasons I don't know remember, I filed STCOR-918 and STCOR-922 as separate tickets, but that seems silly now. I think it would make sense to handle them together since they all amount to the same change you made here in requestLogin
. Your call if you want to tack that work onto this PR.
This ticket description also mentions purging the JWT-related code. It doesn't matter to me which PR that happens under, but if you don't do it here, please move that requirement to STCOR-922 and make sure it happens there :)
@zburke you mean delete such conditions
|
Yes, @UladzislauKutarkin . Conditionals like
should be converted to
i.e. just leaving the side of the conditional that evaluates to true. Code that deals with tokens can also be removed because the UI no longer has access to the token. Responses from |
Fetch `tenant` from state instead of from `stripes-config`. This resolves a bug introduced in #1589 that left a dangling reference to `this.tenant` that was no longer populated. Refs STCOR-942
|
https://folio-org.atlassian.net/browse/STCOR-918
https://folio-org.atlassian.net/browse/STCOR-922
Here we removed token-based authentication endpoints. Also, removed
useSecureTokens
logic part.