From 30af278d4fdd579662163eb5d9210d8b363b7b59 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 23 Dec 2019 12:42:29 +0300 Subject: Fix naming again --- src/main/java/com/juick/server/api/ApiSocialLogin.java | 4 ++-- src/main/java/com/juick/server/www/controllers/SocialLogin.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/com/juick/server/api/ApiSocialLogin.java b/src/main/java/com/juick/server/api/ApiSocialLogin.java index a2b80932..6253bc1b 100644 --- a/src/main/java/com/juick/server/api/ApiSocialLogin.java +++ b/src/main/java/com/juick/server/api/ApiSocialLogin.java @@ -285,7 +285,7 @@ public class ApiSocialLogin { return ResponseEntity.status(HttpStatus.FORBIDDEN).body(null); } } - @GetMapping("/api/_apple") + @GetMapping("/api/_applelogin") public String doAppleLogin(@RequestParam(required = false) String code, @RequestParam String state) { if (StringUtils.isBlank(code)) { String astate = UUID.randomUUID().toString(); @@ -294,7 +294,7 @@ public class ApiSocialLogin { } throw new HttpBadRequestException(); } - @PostMapping("/api/_apple") + @PostMapping("/api/_applelogin") public String doVerifyAppleResponse(@RequestParam Map body) throws InterruptedException, ExecutionException, IOException, ParseException, JOSEException, BadJOSEException { OAuth2AccessToken token = appleSignInService.getAccessToken(body.get("code")); var jsonNode = jsonMapper.readTree(token.getRawResponse()); diff --git a/src/main/java/com/juick/server/www/controllers/SocialLogin.java b/src/main/java/com/juick/server/www/controllers/SocialLogin.java index ff17fb70..eb1e3cfe 100644 --- a/src/main/java/com/juick/server/www/controllers/SocialLogin.java +++ b/src/main/java/com/juick/server/www/controllers/SocialLogin.java @@ -343,7 +343,7 @@ public class SocialLogin { throw new HttpBadRequestException(); } - @GetMapping("/_applelogin") + @GetMapping("/_apple") public String doAppleLogin(HttpServletRequest request, @RequestParam(required = false) String code, HttpServletResponse response) { @@ -355,7 +355,7 @@ public class SocialLogin { } throw new HttpBadRequestException(); } - @PostMapping("/_applelogin") + @PostMapping("/_apple") public String doVerifyAppleResponse(HttpServletRequest request, HttpServletResponse response, @RequestParam Map body) throws InterruptedException, ExecutionException, IOException, ParseException, JOSEException, BadJOSEException { OAuth2AccessToken token = appleSignInService.getAccessToken(body.get("code")); var jsonNode = jsonMapper.readTree(token.getRawResponse()); -- cgit v1.2.3