aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/server/www/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick/server/www/controllers')
-rw-r--r--src/main/java/com/juick/server/www/controllers/SocialLogin.java4
1 files changed, 2 insertions, 2 deletions
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<String, String> body) throws InterruptedException, ExecutionException, IOException, ParseException, JOSEException, BadJOSEException {
OAuth2AccessToken token = appleSignInService.getAccessToken(body.get("code"));
var jsonNode = jsonMapper.readTree(token.getRawResponse());