-
Notifications
You must be signed in to change notification settings - Fork 2
RTR: x-okapi-token, step 3; Replace or update existing token use with new AT and RT support.Β #205
Copy link
Copy link
Open
Description
Go through all of the places where the token is used and replace it with the appropriate AT and possibly the RT structures.
The FolioProperties should have this new structure added if it is not already there from a previous step.
The okapiRequest() and headers() should be updated.
Anywhere else that might utilize the token should be updated to the new approach.
However, updating the TokenUtility is out of scope and intended to be handled via another step.
CatalogService/service/src/main/java/edu/tamu/catalog/service/FolioCatalogService.java
Line 1353 in edae26d
| private <T> ResponseEntity<T> okapiRequest(int attempt, String url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType, Object... uriVariables) { |
see:
CatalogService/service/src/main/java/edu/tamu/catalog/service/FolioCatalogService.java
Line 1408 in edae26d
| private HttpHeaders headers(String tenant, String token) { |
see: https://github.com/TAMULib/CatalogService/blob/edae26da51d0cd483c7297a517561e0afa48485b/service/src/main/java/edu/tamu/catalog/utility/TokenUtility.java
Reactions are currently unavailable