Skip to content

Commit

Permalink
Integrated JsonWebSignature support (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
danishjamal104 authored Apr 13, 2023
1 parent 1d93398 commit 78d1dbb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/apache/fineract/ServerApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -67,6 +66,7 @@
DataSourceTransactionManagerAutoConfiguration.class,
FlywayAutoConfiguration.class,
ErrorMvcAutoConfiguration.class})
@EnableJsonWebSignature
public class ServerApplication {

/**
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ caching:

security:
filter-order: 4
jws:
enable: false

spring:
resources:
Expand Down

0 comments on commit 78d1dbb

Please sign in to comment.