diff --git a/build.gradle b/build.gradle index 8f62da40..624cc391 100644 --- a/build.gradle +++ b/build.gradle @@ -45,7 +45,7 @@ dependencies { compileOnly 'org.projectlombok:lombok:1.18.24' annotationProcessor 'org.projectlombok:lombok:1.18.24' implementation "org.springdoc:springdoc-openapi-ui:1.6.11" - implementation 'org.mifos:ph-ee-connector-common:1.2.2-SNAPSHOT' + implementation 'org.mifos:ph-ee-connector-common:1.4.0-SNAPSHOT' } group = 'org.apache.fineract' diff --git a/src/main/java/org/apache/fineract/ServerApplication.java b/src/main/java/org/apache/fineract/ServerApplication.java index 31fddf68..83933ad0 100644 --- a/src/main/java/org/apache/fineract/ServerApplication.java +++ b/src/main/java/org/apache/fineract/ServerApplication.java @@ -22,6 +22,7 @@ import org.apache.fineract.core.service.AudienceVerifier; import org.apache.fineract.core.service.TenantAwareHeaderFilter; import org.apache.fineract.organisation.tenant.TenantServerConnectionRepository; +import org.mifos.connector.common.interceptor.annotation.EnableJsonWebSignature; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; @@ -43,7 +44,6 @@ import org.springframework.security.core.userdetails.UserDetailsService; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.springframework.security.crypto.password.PasswordEncoder; -import org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer; import org.springframework.security.oauth2.provider.token.DefaultTokenServices; import org.springframework.security.oauth2.provider.token.TokenStore; import org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter; @@ -52,7 +52,6 @@ import org.springframework.web.cors.CorsConfiguration; import org.springframework.web.cors.UrlBasedCorsConfigurationSource; import org.springframework.web.filter.CorsFilter; - import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; @@ -67,6 +66,7 @@ DataSourceTransactionManagerAutoConfiguration.class, FlywayAutoConfiguration.class, ErrorMvcAutoConfiguration.class}) +@EnableJsonWebSignature public class ServerApplication { /** diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 3bac5d5c..7ab49ae6 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -27,6 +27,8 @@ caching: security: filter-order: 4 + jws: + enable: false spring: resources: