Skip to content

Commit

Permalink
chore: apple revoke url를 변경한다.
Browse files Browse the repository at this point in the history
  • Loading branch information
rlarltj committed May 12, 2024
1 parent 49f16f3 commit d55f31e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.*;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.web.client.RestClientException;
Expand Down Expand Up @@ -125,7 +126,7 @@ public void unlink(Long userId) {
params.add("token_type_hint", "refresh_token");

URI uri = UriComponentsBuilder
.fromUriString(host + "/auth/oauth2/v2/revoke")
.fromUriString(host + "/auth/revoke")
.build()
.toUri();

Expand All @@ -136,6 +137,7 @@ public void unlink(Long userId) {

try {
restTemplate.postForEntity(uri, httpEntity, AppleUserData.class);
appleUserRepository.delete(appleUser);
} catch (RestClientException e) {
throw new HttpClientException(ErrorCode.HTTP_CLIENT_REQUEST_FAILED);
}
Expand Down

0 comments on commit d55f31e

Please sign in to comment.