From d3c810b94657b782d30715aef54c18c5a335bc83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-K=C3=A5re=20Solbakken?= Date: Mon, 7 Sep 2020 15:02:08 +0200 Subject: [PATCH] upped deps and formatted according to new linter rules --- build.gradle.kts | 30 +-- gradle/wrapper/gradle-wrapper.jar | Bin 58695 -> 59203 bytes gradle/wrapper/gradle-wrapper.properties | 5 +- gradlew | 2 + gradlew.bat | 189 +++++++++--------- .../oauth2/extensions/HttpUrlExtensions.kt | 5 +- .../oauth2/extensions/NimbusExtensions.kt | 2 +- .../grant/AuthorizationCodeGrantHandler.kt | 3 +- .../oauth2/http/OAuth2HttpRequestHandler.kt | 13 +- .../mock/oauth2/http/OAuth2HttpResponse.kt | 16 +- .../mock/oauth2/templates/TemplateMapper.kt | 12 +- .../mock/oauth2/MockOAuth2ServerTest.kt | 4 +- 12 files changed, 143 insertions(+), 138 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 1d92246e..b31ea844 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,26 +1,26 @@ import java.time.Duration -val assertjVersion = "3.14.0" -val kotlinLoggingVersion = "1.7.8" +val assertjVersion = "3.17.2" +val kotlinLoggingVersion = "1.8.3" val logbackVersion = "1.2.3" -val nimbusSdkVersion = "6.23" -val mockWebServerVersion = "4.3.1" -val jacksonVersion = "2.10.1" -val junitJupiterVersion = "5.5.2" +val nimbusSdkVersion = "8.19.1" +val mockWebServerVersion = "4.8.1" +val jacksonVersion = "2.11.2" +val junitJupiterVersion = "5.7.0-RC1" val konfigVersion = "1.6.10.0" -val kotlinVersion = "1.3.61" -val freemarkerVersion = "2.3.29" +val kotlinVersion = "1.4.0" +val freemarkerVersion = "2.3.30" val mavenRepoBaseUrl = "https://oss.sonatype.org" val mainClassKt = "no.nav.security.mock.oauth2.StandaloneMockOAuth2ServerKt" plugins { application - kotlin("jvm") version "1.3.61" - id("org.jmailen.kotlinter") version "2.2.0" - id("com.google.cloud.tools.jib") version "2.0.0" - id("com.github.johnrengelman.shadow") version "5.2.0" + kotlin("jvm") version "1.4.0" + id("org.jmailen.kotlinter") version "3.0.2" + id("com.google.cloud.tools.jib") version "2.5.0" + id("com.github.johnrengelman.shadow") version "6.0.0" id("net.researchgate.release") version "2.8.1" - id("io.codearte.nexus-staging") version "0.21.2" + id("io.codearte.nexus-staging") version "0.22.0" id("de.marcphilipp.nexus-publish") version "0.4.0" `java-library` `maven-publish` @@ -206,6 +206,10 @@ tasks { } } + withType { + gradleVersion = "6.6.1" + } + /*withType { finalizedBy("closeAndReleaseRepository") }*/ diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index f3d88b1c2faf2fc91d853cd5d4242b5547257070..e708b1c023ec8b20f512888fe07c5bd3ff77bb8f 100644 GIT binary patch delta 12842 zcmY+q1ymhDmoSOmQr324hm`&0SZbS3R18r37J8Z0F-T>@gIK` zatajf2b1lO#&E_RnGDF51uk%8Wcxm3`%Yhe7Psx?*?eZ?8M9_+G(?L=s^OG1n#S(NP3gF?2Mr2^f5E7sM~iVC`Rn;(-^MZ zZu*ZXB;XmgvPls(e#)MMTObsEx9oNz-K?AmQ8pP&P7vqx*=5zxjU+ye_1R<%KSg1? z7H&Yh))(Ke!Pa+aVuWxPKa_~Qo_IH}*;tV8n~O*Xa?t3P^9=L%=wOL1=~{LVv}mU8Q#e6s>v}iV8cDP|EdY)`dp≶7^21 ziF~qst3+S0y_IcTmzBD?t^AL=8|hpx>4aXc#L1YriEI=T#&IZ=SoAEyLg|^3d~uWZ zL(@1$!3on^gfz^e5VdZe5qx_>I%?g|J-FS>NG7S8Uwqt9t6KDa`8Nu!bDng+bM`&i zd>s2#sQ2Dsh6c}3YYi}8DqsK)DG!%;@xqz(<#=W`C`X+!HhtF~r~9OsI`@n36>D}N zz^HjPst0d<*2#=afSFiYwBeNZDk>BahnaW;GkQDA235(RJ%j;vVg80O#gk|q<#+OO z!F(BArIYDQG-{DlHpf+F=!)yw08z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init - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto init - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:init -@rem Get command-line arguments, handling Windows variants - -if not "%OS%" == "Windows_NT" goto win9xME_args - -:win9xME_args -@rem Slurp the command line arguments. -set CMD_LINE_ARGS= -set _SKIP=2 - -:win9xME_args_slurp -if "x%~1" == "x" goto execute - -set CMD_LINE_ARGS=%* - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/src/main/kotlin/no/nav/security/mock/oauth2/extensions/HttpUrlExtensions.kt b/src/main/kotlin/no/nav/security/mock/oauth2/extensions/HttpUrlExtensions.kt index 13fd3c3a..43750872 100644 --- a/src/main/kotlin/no/nav/security/mock/oauth2/extensions/HttpUrlExtensions.kt +++ b/src/main/kotlin/no/nav/security/mock/oauth2/extensions/HttpUrlExtensions.kt @@ -32,8 +32,5 @@ private fun HttpUrl.resolvePath(path: String): HttpUrl { .host(this.host) .port(this.port) .build() - .resolve(path.removePrefix("/")) ?: throw OAuth2Exception( - OAuth2Error.INVALID_REQUEST, - "cannot resolve path $path" - ) + .resolve(path.removePrefix("/")) ?: throw OAuth2Exception(OAuth2Error.INVALID_REQUEST, "cannot resolve path $path") } diff --git a/src/main/kotlin/no/nav/security/mock/oauth2/extensions/NimbusExtensions.kt b/src/main/kotlin/no/nav/security/mock/oauth2/extensions/NimbusExtensions.kt index d7a5c099..dc98840b 100644 --- a/src/main/kotlin/no/nav/security/mock/oauth2/extensions/NimbusExtensions.kt +++ b/src/main/kotlin/no/nav/security/mock/oauth2/extensions/NimbusExtensions.kt @@ -43,7 +43,7 @@ fun TokenRequest.authorizationCode(): AuthorizationCode = fun TokenRequest.clientIdAsString(): String = this.clientAuthentication?.clientID?.value ?: this.clientID?.value - ?: throw OAuth2Exception(OAuth2Error.INVALID_CLIENT, "client_id cannot be null") + ?: throw OAuth2Exception(OAuth2Error.INVALID_CLIENT, "client_id cannot be null") fun SignedJWT.expiresIn(): Int = Duration.between(Instant.now(), this.jwtClaimsSet.expirationTime.toInstant()).seconds.toInt() diff --git a/src/main/kotlin/no/nav/security/mock/oauth2/grant/AuthorizationCodeGrantHandler.kt b/src/main/kotlin/no/nav/security/mock/oauth2/grant/AuthorizationCodeGrantHandler.kt index 8824f019..4c449e71 100644 --- a/src/main/kotlin/no/nav/security/mock/oauth2/grant/AuthorizationCodeGrantHandler.kt +++ b/src/main/kotlin/no/nav/security/mock/oauth2/grant/AuthorizationCodeGrantHandler.kt @@ -47,7 +47,8 @@ class AuthorizationCodeHandler( ) } else -> throw OAuth2Exception( - OAuth2Error.INVALID_GRANT, "hybrid og implicit flow not supported (yet)." + OAuth2Error.INVALID_GRANT, + "hybrid og implicit flow not supported (yet)." ) } } diff --git a/src/main/kotlin/no/nav/security/mock/oauth2/http/OAuth2HttpRequestHandler.kt b/src/main/kotlin/no/nav/security/mock/oauth2/http/OAuth2HttpRequestHandler.kt index d44d9147..73fe467c 100644 --- a/src/main/kotlin/no/nav/security/mock/oauth2/http/OAuth2HttpRequestHandler.kt +++ b/src/main/kotlin/no/nav/security/mock/oauth2/http/OAuth2HttpRequestHandler.kt @@ -129,9 +129,10 @@ class OAuth2HttpRequestHandler( log.error("received exception when handling request.", error) val errorObject: ErrorObject = when (error) { is OAuth2Exception -> error.errorObject - is ParseException -> error.errorObject - ?: OAuth2Error.INVALID_REQUEST - .appendDescription(". received exception message: ${error.message}") + is ParseException -> + error.errorObject + ?: OAuth2Error.INVALID_REQUEST + .appendDescription(". received exception message: ${error.message}") is GeneralException -> error.errorObject else -> null } ?: OAuth2Error.SERVER_ERROR @@ -143,12 +144,14 @@ class OAuth2HttpRequestHandler( if (authenticationRequest.responseType.impliesCodeFlow()) { (grantHandlers[GrantType.AUTHORIZATION_CODE] as AuthorizationCodeHandler) } else throw OAuth2Exception( - OAuth2Error.INVALID_GRANT, "hybrid og implicit flow not supported (yet)." + OAuth2Error.INVALID_GRANT, + "hybrid og implicit flow not supported (yet)." ) private fun grantHandler(tokenRequest: TokenRequest): GrantHandler = grantHandlers[tokenRequest.grantType()] ?: throw OAuth2Exception( - OAuth2Error.INVALID_GRANT, "grant_type ${tokenRequest.grantType()} not supported." + OAuth2Error.INVALID_GRANT, + "grant_type ${tokenRequest.grantType()} not supported." ) private fun wellKnown(request: OAuth2HttpRequest): WellKnown = diff --git a/src/main/kotlin/no/nav/security/mock/oauth2/http/OAuth2HttpResponse.kt b/src/main/kotlin/no/nav/security/mock/oauth2/http/OAuth2HttpResponse.kt index 57b32cce..7f5edbac 100644 --- a/src/main/kotlin/no/nav/security/mock/oauth2/http/OAuth2HttpResponse.kt +++ b/src/main/kotlin/no/nav/security/mock/oauth2/http/OAuth2HttpResponse.kt @@ -60,20 +60,23 @@ data class OAuth2TokenResponse( fun json(anyObject: Any): OAuth2HttpResponse = OAuth2HttpResponse( headers = Headers.headersOf( - OAuth2HttpResponse.ContentType.HEADER, OAuth2HttpResponse.ContentType.JSON + OAuth2HttpResponse.ContentType.HEADER, + OAuth2HttpResponse.ContentType.JSON ), status = 200, body = when (anyObject) { is String -> anyObject - else -> objectMapper - .enable(SerializationFeature.INDENT_OUTPUT) - .writeValueAsString(anyObject) + else -> + objectMapper + .enable(SerializationFeature.INDENT_OUTPUT) + .writeValueAsString(anyObject) } ) fun html(content: String): OAuth2HttpResponse = OAuth2HttpResponse( headers = Headers.headersOf( - OAuth2HttpResponse.ContentType.HEADER, OAuth2HttpResponse.ContentType.HTML + OAuth2HttpResponse.ContentType.HEADER, + OAuth2HttpResponse.ContentType.HTML ), status = 200, body = content @@ -109,7 +112,8 @@ fun oauth2Error(error: ErrorObject): OAuth2HttpResponse { val responseCode = error.httpStatusCode.takeUnless { it == 302 } ?: 400 return OAuth2HttpResponse( headers = Headers.headersOf( - OAuth2HttpResponse.ContentType.HEADER, OAuth2HttpResponse.ContentType.JSON + OAuth2HttpResponse.ContentType.HEADER, + OAuth2HttpResponse.ContentType.JSON ), status = responseCode, body = objectMapper diff --git a/src/main/kotlin/no/nav/security/mock/oauth2/templates/TemplateMapper.kt b/src/main/kotlin/no/nav/security/mock/oauth2/templates/TemplateMapper.kt index 4a6caee9..c7a08892 100644 --- a/src/main/kotlin/no/nav/security/mock/oauth2/templates/TemplateMapper.kt +++ b/src/main/kotlin/no/nav/security/mock/oauth2/templates/TemplateMapper.kt @@ -18,7 +18,8 @@ class TemplateMapper( fun loginHtml(oAuth2HttpRequest: OAuth2HttpRequest): String = asString( HtmlContent( - "login.ftl", mapOf( + "login.ftl", + mapOf( "request_url" to oAuth2HttpRequest.url.newBuilder().query(null).build().toString(), "query" to OAuth2HttpRequest.Parameters(oAuth2HttpRequest.url.query).map ) @@ -28,7 +29,8 @@ class TemplateMapper( fun debuggerCallbackHtml(tokenRequest: String, tokenResponse: String): String { return asString( HtmlContent( - "debugger_callback.ftl", mapOf( + "debugger_callback.ftl", + mapOf( "token_request" to tokenRequest, "token_response" to tokenResponse ) @@ -40,7 +42,8 @@ class TemplateMapper( val urlWithoutQuery = oAuth2HttpRequest.url.newBuilder().query(null) return asString( HtmlContent( - "debugger.ftl", mapOf( + "debugger.ftl", + mapOf( "url" to urlWithoutQuery, "token_url" to oAuth2HttpRequest.url.toTokenEndpointUrl(), "query" to OAuth2HttpRequest.Parameters(oAuth2HttpRequest.url.query).map @@ -52,7 +55,8 @@ class TemplateMapper( fun authorizationCodeResponseHtml(redirectUri: String, code: String, state: String): String = asString( HtmlContent( - "authorization_code_response.ftl", mapOf( + "authorization_code_response.ftl", + mapOf( "redirect_uri" to redirectUri, "code" to code, "state" to state diff --git a/src/test/kotlin/no/nav/security/mock/oauth2/MockOAuth2ServerTest.kt b/src/test/kotlin/no/nav/security/mock/oauth2/MockOAuth2ServerTest.kt index 488ba9b3..60ed28b7 100644 --- a/src/test/kotlin/no/nav/security/mock/oauth2/MockOAuth2ServerTest.kt +++ b/src/test/kotlin/no/nav/security/mock/oauth2/MockOAuth2ServerTest.kt @@ -317,7 +317,9 @@ class MockOAuth2ServerTest { @Test fun issueTokenDirectlyFromMockOAuth2Server() { val signedJWT: SignedJWT = server.issueToken( - "default", "client1", DefaultOAuth2TokenCallback( + "default", + "client1", + DefaultOAuth2TokenCallback( issuerId = "default", subject = "mysub", audience = "muyaud",