diff --git a/src/main/java/com/monkeyk/sos/web/controller/OAuth2DeviceVerificationController.java b/src/main/java/com/monkeyk/sos/web/controller/OAuth2DeviceVerificationController.java index 911b5c2..5604801 100644 --- a/src/main/java/com/monkeyk/sos/web/controller/OAuth2DeviceVerificationController.java +++ b/src/main/java/com/monkeyk/sos/web/controller/OAuth2DeviceVerificationController.java @@ -2,6 +2,8 @@ package com.monkeyk.sos.web.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; import static com.monkeyk.sos.domain.shared.SOSConstants.DEVICE_VERIFICATION_ENDPOINT_URI; @@ -24,7 +26,7 @@ public class OAuth2DeviceVerificationController { * * @return view */ - @GetMapping(DEVICE_VERIFICATION_ENDPOINT_URI) + @RequestMapping(value = DEVICE_VERIFICATION_ENDPOINT_URI, method = {RequestMethod.GET, RequestMethod.POST}) public String deviceVerification() { return "device_verification"; }