File tree Expand file tree Collapse 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 Expand file tree Collapse file tree 6 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ object ScopeParser {
55
66 fun parseScopes (scopes : String? ): Set <String > {
77 if (! scopes.isNullOrBlank()) {
8- return scopes!! .split(SCOPE_SEPARATOR )
8+ return scopes.split(SCOPE_SEPARATOR )
99 .toSet()
1010 }
1111
Original file line number Diff line number Diff line change 1212 <artifactId >oauth2-server-integration-base</artifactId >
1313
1414 <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>
1717 </properties >
1818
1919 <dependencies >
Original file line number Diff line number Diff line change 2121 <dependency >
2222 <groupId >io.javalin</groupId >
2323 <artifactId >javalin</artifactId >
24- <version >2.0 .0</version >
24+ <version >3.12 .0</version >
2525 <scope >provided</scope >
2626 </dependency >
2727
Original file line number Diff line number Diff line change 11package nl.myndocs.oauth2.javalin
22
3- import io.javalin.Context
3+ import io.javalin.http. Context
44import io.javalin.Javalin
55import io.javalin.apibuilder.ApiBuilder.*
66import nl.myndocs.oauth2.config.ConfigurationBuilder
77import nl.myndocs.oauth2.javalin.request.JavalinCallContext
8- import nl.myndocs.oauth2.request.auth.BasicAuthenticator
98import nl.myndocs.oauth2.request.auth.CallContextBasicAuthenticator
109import nl.myndocs.oauth2.router.RedirectRouter
1110
Original file line number Diff line number Diff line change 11package nl.myndocs.oauth2.javalin.request
22
3- import io.javalin.Context
4- import nl.myndocs.oauth2.authenticator.Credentials
3+ import io.javalin.http.Context
54import nl.myndocs.oauth2.request.CallContext
65
7- class JavalinCallContext (val context : Context ) : CallContext {
6+ class JavalinCallContext (private val context : Context ) : CallContext {
87 override val path: String = context.path()
98 override val method: String = context.method()
109 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
88
99class JavalinIntegrationTest : BaseIntegrationTest () {
1010
11- val server = Javalin .create()
11+ private val server: Javalin = Javalin .create()
1212 .apply {
1313 enableOauthServer {
1414 configBuilder(this )
1515 }
1616 }
17- .port(0 )
1817
1918 @BeforeEach
2019 fun before () {
21- server.start()
20+ server.start(0 )
2221
2322 localPort = server.port()
2423 }
You can’t perform that action at this time.
0 commit comments