Skip to content

Commit

Permalink
[#4] 애플 클라이언트 등록
Browse files Browse the repository at this point in the history
  • Loading branch information
jun108059 committed Oct 31, 2021
1 parent 52eb2eb commit ce4ada3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions api/src/main/java/com/teamnexters/lazy/api/config/AppleClient.java
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);

}

0 comments on commit ce4ada3

Please sign in to comment.