Skip to content
This repository was archived by the owner on Sep 28, 2022. It is now read-only.

Commit 60baf14

Browse files
author
Dominik František Bučík
authored
Fix OPTIONS request on /token endpoint (#24)
1 parent 775e2e8 commit 60baf14

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

openid-connect-server/src/main/java/org/mitre/openid/connect/filter/MultiUrlRequestMatcher.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
package org.mitre.openid.connect.filter;
1818

19+
import static org.springframework.web.bind.annotation.RequestMethod.OPTIONS;
20+
1921
import java.util.HashSet;
2022
import java.util.Set;
2123

@@ -45,6 +47,9 @@ public MultiUrlRequestMatcher(Set<String> filterProcessesUrls) {
4547

4648
@Override
4749
public boolean matches(HttpServletRequest request) {
50+
if (OPTIONS.toString().equalsIgnoreCase(request.getMethod())) {
51+
return false;
52+
}
4853
for (RequestMatcher matcher : matchers) {
4954
if (matcher.matches(request)) {
5055
return true;

0 commit comments

Comments
 (0)