diff options
author | Vitaly Takmazov | 2019-12-20 17:27:31 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-12-20 17:27:31 +0300 |
commit | 072e6dad9787c9521411e67c1649351400f196a1 (patch) | |
tree | 6c9c81f6cd47b6d7d632f45056b46dcb4ba91d9b /src | |
parent | bc7f66b3c7dfaa3100e2ea2513448b0ec9a4dab7 (diff) |
Rename API methods
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/juick/server/api/ApiSocialLogin.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/server/api/ApiSocialLogin.java b/src/main/java/com/juick/server/api/ApiSocialLogin.java index 0fa78788..0dbdd09f 100644 --- a/src/main/java/com/juick/server/api/ApiSocialLogin.java +++ b/src/main/java/com/juick/server/api/ApiSocialLogin.java @@ -286,7 +286,7 @@ public class ApiSocialLogin { } } @GetMapping("/_apple") - public String doAppleLogin(@RequestParam(required = false) String code, @RequestParam String state) { + public String doAppleApiLogin(@RequestParam(required = false) String code, @RequestParam String state) { if (StringUtils.isBlank(code)) { String astate = UUID.randomUUID().toString(); crosspostService.addVKState(astate, state); @@ -295,7 +295,7 @@ public class ApiSocialLogin { throw new HttpBadRequestException(); } @PostMapping("/_apple") - public String doVerifyAppleResponse(@RequestParam Map<String, String> body) throws InterruptedException, ExecutionException, IOException, ParseException, JOSEException, BadJOSEException { + public String doVerifyAppleResponseAPI(@RequestParam Map<String, String> body) throws InterruptedException, ExecutionException, IOException, ParseException, JOSEException, BadJOSEException { OAuth2AccessToken token = appleSignInService.getAccessToken(body.get("code")); var jsonNode = jsonMapper.readTree(token.getRawResponse()); var idToken = jsonNode.get("id_token").textValue(); |