Skip to content

Commit 05bfbbf

Browse files
committed
Support for authentication in remote artifact requests (OAuth2.0, HTTP basic, HTTP header)
1 parent 115518c commit 05bfbbf

3 files changed

Lines changed: 16 additions & 6 deletions

File tree

NOTICE.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ This product depends on software developed by third parties as listed in the fol
3333
| Apache License, Version 2.0 | Jackson-module-parameter-names | com.fasterxml.jackson.module:jackson-module-parameter-names | 2.19.4 | https://github.com/FasterXML/jackson-modules-java8/jackson-module-parameter-names |
3434
| Apache License, Version 2.0 | Woodstox | com.fasterxml.woodstox:woodstox-core | 7.1.1 | https://github.com/FasterXML/woodstox |
3535
| Apache License, Version 2.0 | Caffeine cache | com.github.ben-manes.caffeine:caffeine | 3.2.3 | https://github.com/ben-manes/caffeine |
36+
| Apache License, Version 2.0 | JCIP Annotations under Apache License | com.github.stephenc.jcip:jcip-annotations | 1.0-1 | http://stephenc.github.com/jcip-annotations |
3637
| Apache License, Version 2.0 | FindBugs-jsr305 | com.google.code.findbugs:jsr305 | 3.0.2 | http://findbugs.sourceforge.net/ |
3738
| Apache License, Version 2.0 | Gson | com.google.code.gson:gson | 2.9.0 | https://github.com/google/gson/gson |
3839
| Apache License, Version 2.0 | error-prone annotations | com.google.errorprone:error_prone_annotations | 2.3.4 | http://nexus.sonatype.org/oss-repository-hosting.html/error_prone_parent/error_prone_annotations |
@@ -46,6 +47,10 @@ This product depends on software developed by third parties as listed in the fol
4647
| Apache License, Version 2.0 | MaxMind DB Reader | com.maxmind.db:maxmind-db | 2.0.0 | http://dev.maxmind.com/ |
4748
| Apache License, Version 2.0 | MaxMind GeoIP2 API | com.maxmind.geoip2:geoip2 | 3.0.1 | https://dev.maxmind.com/geoip?lang=en |
4849
| Apache License, Version 2.0 | JsonSchemaValidator | com.networknt:json-schema-validator | 2.0.1 | https://github.com/networknt/json-schema-validator |
50+
| Apache License, Version 2.0 | Nimbus Content Type | com.nimbusds:content-type | 2.2 | https://bitbucket.org/connect2id/nimbus-content-type |
51+
| Apache License, Version 2.0 | Nimbus LangTag | com.nimbusds:lang-tag | 1.7 | https://bitbucket.org/connect2id/nimbus-language-tags |
52+
| Apache License, Version 2.0 | Nimbus JOSE+JWT | com.nimbusds:nimbus-jose-jwt | 9.37.4 | https://bitbucket.org/connect2id/nimbus-jose-jwt |
53+
| Apache License, Version 2.0 | OAuth 2.0 SDK with OpenID Connect extensions | com.nimbusds:oauth2-oidc-sdk | 9.43.6 | https://bitbucket.org/connect2id/oauth-2.0-sdk-with-openid-connect-extensions |
4954
| Eclipse Distribution License - v1.0 | istack common utility code runtime | com.sun.istack:istack-commons-runtime | 4.1.2 | https://projects.eclipse.org/projects/ee4j/istack-commons/istack-commons-runtime |
5055
| Eclipse Distribution License - v1.0 | Old JAXB Core | com.sun.xml.bind:jaxb-core | 4.0.6 | https://eclipse-ee4j.github.io/jaxb-ri/ |
5156
| Eclipse Distribution License - v1.0 | Old JAXB Runtime | com.sun.xml.bind:jaxb-impl | 4.0.4 | https://eclipse-ee4j.github.io/jaxb-ri/ |
@@ -95,10 +100,10 @@ This product depends on software developed by third parties as listed in the fol
95100
| Apache License, Version 2.0 | Apache Log4j API | org.apache.logging.log4j:log4j-api | 2.24.3 | https://logging.apache.org/log4j/2.x/log4j/log4j-api/ |
96101
| Apache License, Version 2.0 | Log4j API to SLF4J Adapter | org.apache.logging.log4j:log4j-to-slf4j | 2.24.3 | https://logging.apache.org/log4j/2.x/log4j/log4j-to-slf4j/ |
97102
| Apache License, Version 2.0 | Apache Neethi | org.apache.neethi:neethi | 3.2.1 | https://ws.apache.org/neethi/ |
98-
| Apache License, Version 2.0 | Apache FontBox | org.apache.pdfbox:fontbox | 3.0.6 | http://pdfbox.apache.org/ |
99-
| Apache License, Version 2.0 | Apache PDFBox | org.apache.pdfbox:pdfbox | 3.0.6 | https://www.apache.org/pdfbox-parent/pdfbox/ |
100-
| Apache License, Version 2.0 | Apache PDFBox io | org.apache.pdfbox:pdfbox-io | 3.0.6 | https://www.apache.org/pdfbox-parent/pdfbox-io/ |
101-
| Apache License, Version 2.0 | Apache XmpBox | org.apache.pdfbox:xmpbox | 3.0.3 | https://www.apache.org/pdfbox-parent/xmpbox/ |
103+
| Apache License, Version 2.0 | Apache FontBox | org.apache.pdfbox:fontbox | 3.0.7 | http://pdfbox.apache.org/ |
104+
| Apache License, Version 2.0 | Apache PDFBox | org.apache.pdfbox:pdfbox | 3.0.7 | https://www.apache.org/pdfbox-parent/pdfbox/ |
105+
| Apache License, Version 2.0 | Apache PDFBox io | org.apache.pdfbox:pdfbox-io | 3.0.7 | https://www.apache.org/pdfbox-parent/pdfbox-io/ |
106+
| Apache License, Version 2.0 | Apache XmpBox | org.apache.pdfbox:xmpbox | 3.0.7 | https://www.apache.org/pdfbox-parent/xmpbox/ |
102107
| Apache License, Version 2.0 | Apache Tika core | org.apache.tika:tika-core | 3.2.2 | https://tika.apache.org/ |
103108
| Apache License, Version 2.0 | tomcat-embed-core | org.apache.tomcat.embed:tomcat-embed-core | 10.1.52 | https://tomcat.apache.org/ |
104109
| Apache License, Version 2.0 | tomcat-embed-el | org.apache.tomcat.embed:tomcat-embed-el | 10.1.52 | https://tomcat.apache.org/ |
@@ -157,6 +162,7 @@ This product depends on software developed by third parties as listed in the fol
157162
| Apache License, Version 2.0 | spring-boot-starter-aop | org.springframework.boot:spring-boot-starter-aop | 3.5.11 | https://spring.io/projects/spring-boot |
158163
| Apache License, Version 2.0 | spring-boot-starter-json | org.springframework.boot:spring-boot-starter-json | 3.5.11 | https://spring.io/projects/spring-boot |
159164
| Apache License, Version 2.0 | spring-boot-starter-logging | org.springframework.boot:spring-boot-starter-logging | 3.5.11 | https://spring.io/projects/spring-boot |
165+
| Apache License, Version 2.0 | spring-boot-starter-oauth2-client | org.springframework.boot:spring-boot-starter-oauth2-client | 3.5.11 | https://spring.io/projects/spring-boot |
160166
| Apache License, Version 2.0 | spring-boot-starter-security | org.springframework.boot:spring-boot-starter-security | 3.5.11 | https://spring.io/projects/spring-boot |
161167
| Apache License, Version 2.0 | spring-boot-starter-thymeleaf | org.springframework.boot:spring-boot-starter-thymeleaf | 3.5.11 | https://spring.io/projects/spring-boot |
162168
| Apache License, Version 2.0 | spring-boot-starter-tomcat | org.springframework.boot:spring-boot-starter-tomcat | 3.5.11 | https://spring.io/projects/spring-boot |
@@ -165,6 +171,9 @@ This product depends on software developed by third parties as listed in the fol
165171
| Apache License, Version 2.0 | spring-security-config | org.springframework.security:spring-security-config | 6.5.8 | https://spring.io/projects/spring-security |
166172
| Apache License, Version 2.0 | spring-security-core | org.springframework.security:spring-security-core | 6.5.8 | https://spring.io/projects/spring-security |
167173
| Apache License, Version 2.0 | spring-security-crypto | org.springframework.security:spring-security-crypto | 6.5.8 | https://spring.io/projects/spring-security |
174+
| Apache License, Version 2.0 | spring-security-oauth2-client | org.springframework.security:spring-security-oauth2-client | 6.5.8 | https://spring.io/projects/spring-security |
175+
| Apache License, Version 2.0 | spring-security-oauth2-core | org.springframework.security:spring-security-oauth2-core | 6.5.8 | https://spring.io/projects/spring-security |
176+
| Apache License, Version 2.0 | spring-security-oauth2-jose | org.springframework.security:spring-security-oauth2-jose | 6.5.8 | https://spring.io/projects/spring-security |
168177
| Apache License, Version 2.0 | spring-security-web | org.springframework.security:spring-security-web | 6.5.8 | https://spring.io/projects/spring-security |
169178
| Apache License, Version 2.0 | thymeleaf | org.thymeleaf:thymeleaf | 3.1.3.RELEASE | http://www.thymeleaf.org/thymeleaf-lib/thymeleaf |
170179
| Apache License, Version 2.0 | thymeleaf-spring6 | org.thymeleaf:thymeleaf-spring6 | 3.1.3.RELEASE | http://www.thymeleaf.org/thymeleaf-lib/thymeleaf-spring6 |

jsonvalidator-jar/src/main/java/eu/europa/ec/itb/json/standalone/Application.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import org.springframework.boot.autoconfigure.SpringBootApplication;
2020
import org.springframework.boot.autoconfigure.freemarker.FreeMarkerAutoConfiguration;
2121
import org.springframework.boot.autoconfigure.gson.GsonAutoConfiguration;
22+
import org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2ClientAutoConfiguration;
2223
import org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration;
2324
import org.springframework.context.annotation.ComponentScan;
2425

@@ -27,7 +28,7 @@
2728
/**
2829
* Application entry point when running the validator as a command-line tool.
2930
*/
30-
@SpringBootApplication(exclude = {UserDetailsServiceAutoConfiguration.class, FreeMarkerAutoConfiguration.class, GsonAutoConfiguration.class})
31+
@SpringBootApplication(exclude = {UserDetailsServiceAutoConfiguration.class, FreeMarkerAutoConfiguration.class, GsonAutoConfiguration.class, OAuth2ClientAutoConfiguration.class})
3132
@ComponentScan("eu.europa.ec.itb")
3233
public class Application {
3334

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
</developers>
4444

4545
<properties>
46-
<version.itbCommons>1.10.0</version.itbCommons>
46+
<version.itbCommons>1.11.0-SNAPSHOT</version.itbCommons>
4747
<version.asm>9.7.1</version.asm>
4848
</properties>
4949

0 commit comments

Comments
 (0)