File tree 6 files changed +9
-12
lines changed
oauth2-server-core/src/main/java/nl/myndocs/oauth2/scope
oauth2-server-integration-base
main/java/nl/myndocs/oauth2/javalin
test/java/nl/myndocs/oauth2/javalin/integration
6 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ object ScopeParser {
5
5
6
6
fun parseScopes (scopes : String? ): Set <String > {
7
7
if (! scopes.isNullOrBlank()) {
8
- return scopes!! .split(SCOPE_SEPARATOR )
8
+ return scopes.split(SCOPE_SEPARATOR )
9
9
.toSet()
10
10
}
11
11
Original file line number Diff line number Diff line change 12
12
<artifactId >oauth2-server-integration-base</artifactId >
13
13
14
14
<properties >
15
- <jackson .version>2.9.9 </jackson .version>
16
- <jackson .databind.version>2.10.0.pr1 </jackson .databind.version>
15
+ <jackson .version>2.11.4 </jackson .version>
16
+ <jackson .databind.version>2.11.4 </jackson .databind.version>
17
17
</properties >
18
18
19
19
<dependencies >
Original file line number Diff line number Diff line change 21
21
<dependency >
22
22
<groupId >io.javalin</groupId >
23
23
<artifactId >javalin</artifactId >
24
- <version >2.0 .0</version >
24
+ <version >3.12 .0</version >
25
25
<scope >provided</scope >
26
26
</dependency >
27
27
Original file line number Diff line number Diff line change 1
1
package nl.myndocs.oauth2.javalin
2
2
3
- import io.javalin.Context
3
+ import io.javalin.http. Context
4
4
import io.javalin.Javalin
5
5
import io.javalin.apibuilder.ApiBuilder.*
6
6
import nl.myndocs.oauth2.config.ConfigurationBuilder
7
7
import nl.myndocs.oauth2.javalin.request.JavalinCallContext
8
- import nl.myndocs.oauth2.request.auth.BasicAuthenticator
9
8
import nl.myndocs.oauth2.request.auth.CallContextBasicAuthenticator
10
9
import nl.myndocs.oauth2.router.RedirectRouter
11
10
Original file line number Diff line number Diff line change 1
1
package nl.myndocs.oauth2.javalin.request
2
2
3
- import io.javalin.Context
4
- import nl.myndocs.oauth2.authenticator.Credentials
3
+ import io.javalin.http.Context
5
4
import nl.myndocs.oauth2.request.CallContext
6
5
7
- class JavalinCallContext (val context : Context ) : CallContext {
6
+ class JavalinCallContext (private val context : Context ) : CallContext {
8
7
override val path: String = context.path()
9
8
override val method: String = context.method()
10
9
override val headers: Map <String , String > = context.headerMap()
Original file line number Diff line number Diff line change @@ -8,17 +8,16 @@ import org.junit.jupiter.api.BeforeEach
8
8
9
9
class JavalinIntegrationTest : BaseIntegrationTest () {
10
10
11
- val server = Javalin .create()
11
+ private val server: Javalin = Javalin .create()
12
12
.apply {
13
13
enableOauthServer {
14
14
configBuilder(this )
15
15
}
16
16
}
17
- .port(0 )
18
17
19
18
@BeforeEach
20
19
fun before () {
21
- server.start()
20
+ server.start(0 )
22
21
23
22
localPort = server.port()
24
23
}
You can’t perform that action at this time.
0 commit comments