Skip to content

Commit

Permalink
Update TokenController.java
Browse files Browse the repository at this point in the history
To provide parametrized type for the responseentity.
  • Loading branch information
ssathiah committed Jan 31, 2024
1 parent 99a1e7e commit bef231c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static RestTemplate restTemplate(RestTemplateBuilder builder) {
return builder.build();
}
@PostMapping("/token")
public ResponseEntity token(@RequestHeader("clientid") String clientId, @RequestHeader("clientsecret") String clientSecret) {
public ResponseEntity<String> token(@RequestHeader("clientid") String clientId, @RequestHeader("clientsecret") String clientSecret) {
log.info("Token URL : " + authTokenUri);
String accessToken = null;
String postBody = "grant_type=client_credentials" +
Expand Down

0 comments on commit bef231c

Please sign in to comment.