Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
NilsOveTen committed Jan 30, 2024
1 parent 35417f3 commit dae1f97
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 19 deletions.
22 changes: 11 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.1.3</version>
<version>3.2.2</version>
<relativePath/>
</parent>

Expand All @@ -29,9 +29,9 @@
<maven.exec.skip>false</maven.exec.skip>
<!--end standard properties-->

<kotlin.version>1.9.10</kotlin.version>
<testcontainers.version>1.19.0</testcontainers.version>
<jena.version>4.9.0</jena.version>
<kotlin.version>1.9.22</kotlin.version>
<testcontainers.version>1.19.4</testcontainers.version>
<jena.version>4.10.0</jena.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -122,13 +122,13 @@
<dependency>
<groupId>org.mockito.kotlin</groupId>
<artifactId>mockito-kotlin</artifactId>
<version>5.1.0</version>
<version>5.2.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.wiremock</groupId>
<artifactId>wiremock</artifactId>
<version>3.0.2</version>
<artifactId>wiremock-standalone</artifactId>
<version>3.3.1</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -182,7 +182,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.4.0</version>
<version>3.5.0</version>
<executions>
<execution>
<id>add-source</id>
Expand Down Expand Up @@ -230,7 +230,7 @@
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.10</version>
<version>0.8.11</version>
<executions>
<execution>
<id>before-unit-test-execution</id>
Expand Down Expand Up @@ -288,7 +288,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.1.2</version>
<version>3.2.5</version>
<configuration>
<useSystemClassLoader>false</useSystemClassLoader>
<argLine>${surefire.jacoco.args}</argLine>
Expand All @@ -302,7 +302,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.1.2</version>
<version>3.2.5</version>
<configuration>
<argLine>${failsafe.jacoco.args}</argLine>
<groups>contract</groups>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.http.HttpMethod
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.invoke
import org.springframework.security.oauth2.core.DelegatingOAuth2TokenValidator
import org.springframework.security.oauth2.jwt.*
import org.springframework.security.oauth2.jwt.JwtClaimNames.AUD
Expand All @@ -15,14 +16,17 @@ open class SecurityConfig {

@Bean
open fun filterChain(http: HttpSecurity): SecurityFilterChain {
http.csrf().disable()
.cors().and()
.authorizeHttpRequests{ authorize ->
authorize.requestMatchers(HttpMethod.OPTIONS).permitAll()
.requestMatchers(HttpMethod.POST, "/update/meta").authenticated()
.requestMatchers(HttpMethod.GET).permitAll()
.anyRequest().authenticated() }
.oauth2ResourceServer { resourceServer -> resourceServer.jwt() }
http {
cors { }
csrf { disable() }
authorizeHttpRequests {
authorize(HttpMethod.OPTIONS, "/**", permitAll)
authorize(HttpMethod.POST, "/update/meta", authenticated)
authorize(HttpMethod.GET, "/**", permitAll)
authorize(anyRequest, authenticated)
}
oauth2ResourceServer { jwt { } }
}
return http.build()
}

Expand Down

0 comments on commit dae1f97

Please sign in to comment.