Skip to content

Commit

Permalink
Merge pull request #60 from Tune-Fun/fix/oauth2_revoke_api
Browse files Browse the repository at this point in the history
fix(oauth2) Revoke
  • Loading branch information
habinkim authored Apr 10, 2024
2 parents 4e4faae + ceb80bf commit 421bc98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import static org.springframework.http.MediaType.MULTIPART_FORM_DATA_VALUE;

@FeignClient(contextId = "revokeAppleOAuth2Port", name = "revokeAppleOAuth2Port", url = "https://oauth2.googleapis.com/revoke")
@FeignClient(contextId = "revokeAppleOAuth2Port", name = "revokeAppleOAuth2Port", url = "https://appleid.apple.com/auth/revoke")
public interface RevokeOAuth2ApplePort {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(contextId = "revokeGoogleOAuth2Port", name = "revokeGoogleOAuth2Port", url = "https://oauth2.googleapis.com/revoke")
Expand All @@ -11,7 +12,7 @@ public interface RevokeOAuth2GooglePort {
* @param accessToken Google OAuth2 access token
* @see <a href="https://developers.google.com/identity/protocols/oauth2/web-server#tokenrevoke">Revoking (invalidating) a token</a>
*/
@GetMapping
@PostMapping
String revokeOAuth2Google(@RequestParam("token") String accessToken);

}

0 comments on commit 421bc98

Please sign in to comment.