Skip to content

Commit 40b0a5b

Browse files
authored
Merge pull request #36 from kids-first/fix/2983-remove-refresh-token
fix #2983 : Remove refresh token
2 parents f31b7c1 + ddb2ba1 commit 40b0a5b

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/main/java/io/kidsfirst/web/rest/FenceResource.java

-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ public ResponseEntity<JSONObject> getTokens(@RequestParam("fence") String fenceK
9393

9494
val body = new JSONObject();
9595
body.put("access_token", accessToken.orElse(""));
96-
body.put("refresh_token", refreshToken.orElse(""));
9796

9897
return ResponseEntity.ok(body);
9998
}
@@ -111,7 +110,6 @@ public ResponseEntity<JSONObject> requestTokens(@RequestParam("code") String aut
111110

112111

113112
body.put("access_token", tokens.getAccessToken().getValue());
114-
body.put("refresh_token", tokens.getRefreshToken().getValue());
115113

116114
return ResponseEntity.ok(body);
117115
}

src/test/java/io/kidsfirst/keys/KfKeyManagementApplicationTests.java

-3
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,6 @@ void testFenceDCFTokenGET() throws Exception {
441441

442442
JSONObject response = (JSONObject)this.jsonParser.parse(result.getResponse().getContentAsString());
443443
Assertions.assertNotNull(response.get("access_token"));
444-
Assertions.assertNotNull(response.get("refresh_token"));
445444
}
446445

447446
@Test
@@ -459,7 +458,6 @@ void testFenceGEN3TokenGET() throws Exception {
459458

460459
JSONObject response = (JSONObject)this.jsonParser.parse(result.getResponse().getContentAsString());
461460
Assertions.assertNotNull(response.get("access_token"));
462-
Assertions.assertNotNull(response.get("refresh_token"));
463461
}
464462

465463
@Test
@@ -478,7 +476,6 @@ void testFenceTokenPOST() throws Exception {
478476

479477
JSONObject response = (JSONObject)this.jsonParser.parse(result.getResponse().getContentAsString());
480478
Assertions.assertNotNull(response.get("access_token"));
481-
Assertions.assertNotNull(response.get("refresh_token"));
482479
}
483480

484481
}

0 commit comments

Comments
 (0)