Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

Commit d84de29

Browse files
authored
not sure if this is needed right here. Testing.
` this.auth0New.refreshToken(refreshToken);` won't work with tokens generated using different applications so that call fails. Testing to see if we need it though if the refresh is still active
1 parent 4047a82 commit d84de29

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/appirio/tech/core/service/identity/resource/AuthorizationResource.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,11 +384,13 @@ public ApiResponse createObject(
384384
Map<String, Object> header = Utils.parseJWTHeader(auth.getExternalToken());
385385
if ("RS256".equals(header.get("alg"))) {
386386
isRs256Token = true;
387+
/*
387388
String refreshToken = auth.getRefreshToken();
388389
Auth0Credential cred = this.auth0New.refreshToken(refreshToken);
389390
this.cacheService.delete(auth.getExternalToken());
390391
this.cacheService.put(cred.getAccessToken(), refreshToken);
391392
auth.setToken(cred.getAccessToken());
393+
*/
392394
} else {
393395
auth.setToken(createJWTToken(auth.getExternalToken()));
394396
}

0 commit comments

Comments
 (0)