-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
api/src/main/java/com/teamnexters/lazy/api/config/AppleClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.teamnexters.lazy.api.config; | ||
|
||
import com.teamnexters.lazy.api.config.auth.dto.ApplePublicKeyResponse; | ||
import com.teamnexters.lazy.api.config.auth.jwt.AppleToken; | ||
import org.springframework.cloud.openfeign.FeignClient; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.PostMapping; | ||
|
||
@FeignClient(name="appleClient", url="https://appleid.apple.com/auth") | ||
public interface AppleClient { | ||
@GetMapping(value = "/keys") | ||
ApplePublicKeyResponse getAppleAuthPublicKey(); | ||
|
||
@PostMapping(value = "/token", consumes = "application/x-www-form-urlencoded") | ||
AppleToken.Response getToken(AppleToken.Request request); | ||
|
||
} |