Skip to content

RTR: x-okapi-token, step 3; Replace or update existing token use with new AT and RT support.Β #205

@kaladay

Description

@kaladay

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.

see: https://github.com/TAMULib/CatalogService/blob/edae26da51d0cd483c7297a517561e0afa48485b/service/src/main/java/edu/tamu/catalog/properties/FolioProperties.java
see:

private <T> ResponseEntity<T> okapiRequest(int attempt, String url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType, Object... uriVariables) {

see:
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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

πŸƒ On Sprint

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions