Skip to content

Commit 84ef984

Browse files
committed
Fixes #263
1 parent ba7dbbe commit 84ef984

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

oidc/src/main/java/oidc/endpoints/AuthorizationEndpoint.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@
3535
import org.springframework.util.LinkedMultiValueMap;
3636
import org.springframework.util.MultiValueMap;
3737
import org.springframework.util.StringUtils;
38-
import org.springframework.web.bind.annotation.GetMapping;
39-
import org.springframework.web.bind.annotation.PostMapping;
40-
import org.springframework.web.bind.annotation.RequestParam;
38+
import org.springframework.web.bind.annotation.*;
4139
import org.springframework.web.servlet.ModelAndView;
4240
import org.springframework.web.servlet.view.RedirectView;
4341
import org.springframework.web.util.UriComponentsBuilder;
@@ -89,7 +87,7 @@ public AuthorizationEndpoint(AuthorizationCodeRepository authorizationCodeReposi
8987
this.consentEnabled = consentEnabled;
9088
}
9189

92-
@GetMapping("/oidc/authorize")
90+
@RequestMapping(value = "/oidc/authorize", method = {RequestMethod.GET, RequestMethod.POST})
9391
public ModelAndView authorize(@RequestParam MultiValueMap<String, String> parameters,
9492
Authentication authentication,
9593
HttpServletRequest request) throws ParseException, JOSEException, IOException, CertificateException, BadJOSEException, java.text.ParseException, URISyntaxException {

0 commit comments

Comments
 (0)