-
Notifications
You must be signed in to change notification settings - Fork 368
Check expiration time in FOLIO token when using login-with-expiry #4186
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
Merged
demiankatz
merged 14 commits into
vufind-org:dev
from
MSU-Libraries:folio-token-expiration
Feb 5, 2025
Merged
Changes from 10 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
d76aa8c
Add check for FOLIO token expiration and add to search page load to s…
meganschanz a2188bd
Merge remote-tracking branch 'origin/dev' into folio-token-expiration
meganschanz 74e57af
No need to save to a return val to a variable since we don't use it
meganschanz 3f98865
Directly initialize the ILS driver in the results template instead of…
meganschanz 4d9f652
Merge remote-tracking branch 'origin/dev' into folio-token-expiration
meganschanz 16dcd7c
Remove extra newline in template
meganschanz 7cf1ebb
Feedback updates for token refresh
meganschanz b263695
Update test to reflect changes after refactor
meganschanz 2b5d9c1
Comment fix
meganschanz 101831d
Refactor setting token variables and minor style fixes
meganschanz 3998f1e
Minor comment fixes and variable refactor
meganschanz 5c0c9e4
Merge from main to remove bs3 based themes
meganschanz 73e3aa8
Merge remote-tracking branch 'origin/dev' into folio-token-expiration
meganschanz 3559bef
Remove ILS initialization from the search results template
meganschanz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
module/VuFind/tests/fixtures/folio/responses/cancel-holds-bad-patron.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
module/VuFind/tests/fixtures/folio/responses/cancel-holds-mixed-statuses.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 10 additions & 4 deletions
14
module/VuFind/tests/fixtures/folio/responses/check-invalid-token.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
module/VuFind/tests/fixtures/folio/responses/check-valid-token.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
module/VuFind/tests/fixtures/folio/responses/get-bound-with-records.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
[ | ||
{ | ||
"comment": "Initial request for token" | ||
}, | ||
{ | ||
"expectedPath": "/inventory/items/bc3fd525-4254-4075-845b-1428986d811b", | ||
"expectedParams": {}, | ||
"comment": "Item with six boundWithTitles", | ||
"status": 200, | ||
"body": "{\"id\" : \"bc3fd525-4254-4075-845b-1428986d811b\", \"_version\" : \"2\", \"status\" : { \"name\" : \"Available\", \"date\" : \"2020-08-15T16:15:40.000+00:00\" }, \"administrativeNotes\" : [ ], \"title\" : \"Ueber sclaverei, sclaven-emancipation und die einwanderung \\\"freier neger\\\" nach den colonieen; aufzeichnungen eines weitgereisten.\", \"callNumber\" : \"326.08 S632 \", \"hrid\" : \"1015758\", \"contributorNames\" : [ ], \"formerIds\" : [ \"OLE-id-1015758\" ], \"discoverySuppress\" : false, \"holdingsRecordId\" : \"7c12cb78-1249-4ec1-a221-9a426822d866\", \"barcode\" : \"39151008725588\", \"itemLevelCallNumber\" : \"326.08 S632 v.10\", \"itemLevelCallNumberPrefix\" : \"\", \"itemLevelCallNumberTypeId\" : \"03dd64d0-5626-4ecd-8ece-4531e0069f35\", \"notes\" : [ { \"itemNoteTypeId\" : \"8f26b475-d7e3-4577-8bd0-c3d3bf44f73b\", \"note\" : \"1\", \"staffOnly\" : true } ], \"circulationNotes\" : [ ], \"tags\" : { \"tagList\" : [ ] }, \"yearCaption\" : [ ], \"electronicAccess\" : [ ], \"statisticalCodeIds\" : [ \"ba16cd17-fb83-4a14-ab40-23c7ffa5ccb5\" ], \"purchaseOrderLineIdentifier\" : null, \"materialType\" : { \"id\" : \"1a54b431-2e4f-452d-9cae-9cee66c9a892\", \"name\" : \"book\" }, \"permanentLoanType\" : { \"id\" : \"2b94c631-fca9-4892-a730-03ee529ffe27\", \"name\" : \"Can circulate\" }, \"metadata\" : { \"createdDate\" : \"2020-08-15T16:15:40.000+00:00\", \"createdByUserId\" : \"82dd3b08-c440-4aa1-b924-839c3ec2627c\", \"updatedDate\" : \"2021-06-09T14:52:07.240+00:00\", \"updatedByUserId\" : \"163580ba-a91d-4974-ad65-e68becf69904\" }, \"effectiveCallNumberComponents\" : { \"callNumber\" : \"326.08 S632 v.10\", \"prefix\" : null, \"suffix\" : null, \"typeId\" : \"03dd64d0-5626-4ecd-8ece-4531e0069f35\" }, \"effectiveShelvingOrder\" : \"3326.08 S632 V 210\", \"isBoundWith\" : true, \"boundWithTitles\" : [ { \"briefHoldingsRecord\" : { \"id\" : \"76b8c622-361b-4f2e-802c-1df39d0f04e3\", \"hrid\" : \"ho00003535456\" }, \"briefInstance\" : { \"id\" : \"12cb5553-c1bb-48c8-b439-aebc5202970f\", \"title\" : \"Slavery as it once prevailed in Massachusetts : A lecture for the Massachusetts Historical Society ...\", \"hrid\" : \"1093117\" } }, { \"briefHoldingsRecord\" : { \"id\" : \"7c12cb78-1249-4ec1-a221-9a426822d866\", \"hrid\" : \"1003416\" }, \"briefInstance\" : { \"id\" : \"f56d3ce3-b31f-4320-8e08-dfc2f9a96c4a\", \"title\" : \"Ueber sclaverei, sclaven-emancipation und die einwanderung \\\"freier neger\\\" nach den colonieen; aufzeichnungen eines weitgereisten.\", \"hrid\" : \"1093115\" } }, { \"briefHoldingsRecord\" : { \"id\" : \"8d0b4586-848f-4235-8a97-1ab0e28cbff2\", \"hrid\" : \"ho00003535455\" }, \"briefInstance\" : { \"id\" : \"6abe72a5-f518-408a-8a67-fe1ec15627b8\", \"title\" : \"Concerning a full understanding of the southern attitude toward slavery, by John Douglass Van Horne.\", \"hrid\" : \"1093116\" } }, { \"briefHoldingsRecord\" : { \"id\" : \"386ec94b-9387-4c38-b5b0-6bbebf75eeb3\", \"hrid\" : \"ho00003535457\" }, \"briefInstance\" : { \"id\" : \"1c4cda9b-3506-45e7-b444-0e901cc661e3\", \"title\" : \"American slavery : echoes and glimpses of prophecy / by Daniel S. Whitney.\", \"hrid\" : \"1093118\" } }, { \"briefHoldingsRecord\" : { \"id\" : \"fdbcf4ae-2435-437f-8d69-a013ef9e7b89\", \"hrid\" : \"ho00003535458\" }, \"briefInstance\" : { \"id\" : \"03684060-3bc0-4a66-874c-854e50ed84fe\", \"title\" : \"The Tract society and slavery. Speeches of Chief Justice Williams, Judge Parsons, and ex-Governor Ellsworth: delivered in the Center Church, Hartford, Conn., at the anniversary of the Hartford branch of the American Tract Society, January 9th, 1859.\", \"hrid\" : \"1093119\" } }, { \"briefHoldingsRecord\" : { \"id\" : \"4265ebf4-7fae-486f-9b7b-7a43ce9284ba\", \"hrid\" : \"ho00003535459\" }, \"briefInstance\" : { \"id\" : \"080e5167-7a50-4513-b0f3-0f5bf835df7b\", \"title\" : \"Case of Passmore Williamson : report of the proceedings on the writ of habeas corpus, issued by the Hon. John K. Kane, judge of the District Court of the United States for the Eastern District of Pennsylvania, in the case of the United States of America ex rel. John H. Wheeler vs. Passmore Williamson, including the several opinions delivered, and the arguments of counsel / reported by Arthur Cannon.\", \"hrid\" : \"1093120\" } } ], \"effectiveLocation\" : { \"id\" : \"2337edc1-d611-4024-be3c-0fe78e5d03ca\", \"name\" : \"LMC-B\" }}" | ||
} | ||
] | ||
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
module/VuFind/tests/fixtures/folio/responses/get-my-holds-in_transit-limit.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
module/VuFind/tests/fixtures/folio/responses/get-my-holds-in_transit-multiple.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
module/VuFind/tests/fixtures/folio/responses/get-my-holds-in_transit-paginate-estimate.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
module/VuFind/tests/fixtures/folio/responses/get-my-holds-in_transit-two.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.