Skip to content

Commit bf64ca8

Browse files
authored
Allow POST on authorize endpoint (#63)
1 parent 48cb1ad commit bf64ca8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

oauth2-server-core/src/main/java/nl/myndocs/oauth2/CallRouter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ class CallRouter(
142142

143143
private fun routeAuthorizeEndpoint(callContext: CallContext, authorizer: Authorizer) {
144144
try {
145-
if (callContext.method.toLowerCase() != METHOD_GET) {
145+
if (!arrayOf(METHOD_GET, METHOD_POST).contains(callContext.method.toLowerCase())) {
146146
return
147147
}
148148

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<dependency>
5353
<groupId>io.mockk</groupId>
5454
<artifactId>mockk</artifactId>
55-
<version>1.8.12.kotlin13</version>
55+
<version>1.9.3</version>
5656
<scope>test</scope>
5757
</dependency>
5858
<dependency>

0 commit comments

Comments
 (0)