File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
src/main/kotlin/no/nav/security/mock/oauth2 Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,10 @@ open class MockOAuth2Server(
49
49
50
50
@JvmOverloads
51
51
@Throws(IOException ::class )
52
- fun start (inetAddress : InetAddress = InetAddress .getByName("localhost"), port : Int = 0) {
52
+ fun start (port : Int = 0) = start(InetAddress .getByName(" localhost" ), port)
53
+
54
+ @Throws(IOException ::class )
55
+ fun start (inetAddress : InetAddress , port : Int ) {
53
56
log.debug(" attempt to start server on port=$port " )
54
57
httpServer.start(inetAddress, port, router)
55
58
}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import no.nav.security.mock.oauth2.http.OAuth2HttpServer
5
5
import no.nav.security.mock.oauth2.token.OAuth2TokenCallback
6
6
import no.nav.security.mock.oauth2.token.OAuth2TokenProvider
7
7
8
- data class OAuth2Config (
8
+ data class OAuth2Config @JvmOverloads constructor (
9
9
val interactiveLogin : Boolean = false ,
10
10
val tokenProvider : OAuth2TokenProvider = OAuth2TokenProvider (),
11
11
val tokenCallbacks : Set <OAuth2TokenCallback > = emptySet(),
You can’t perform that action at this time.
0 commit comments