게이트웨이 인증 코드 수정 및 버전 증가

This commit is contained in:
kimscott
2020-07-30 14:05:14 +09:00
parent ff47d83f18
commit d704dbb04e
5 changed files with 5 additions and 49 deletions

View File

@@ -1,17 +1,14 @@
package com.example.template;
import org.springframework.cloud.gateway.config.GlobalCorsProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.ClassPathResource;
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity;
import org.springframework.security.config.web.server.ServerHttpSecurity;
import org.springframework.security.oauth2.provider.token.store.KeyStoreKeyFactory;
import org.springframework.security.web.server.SecurityWebFilterChain;
import org.springframework.web.cors.reactive.CorsConfigurationSource;
import org.springframework.web.cors.reactive.UrlBasedCorsConfigurationSource;
import java.security.KeyPair;
@Configuration
@EnableWebFluxSecurity
public class ResourceServerConfiguration {
@@ -41,14 +38,4 @@ public class ResourceServerConfiguration {
.forEach(source::registerCorsConfiguration);
return source;
}
@Bean
public KeyPair makeKeyPair(){
KeyPair keyPair = new KeyStoreKeyFactory(
new ClassPathResource("server.jks"), "qweqwe".toCharArray())
.getKeyPair("uengine", "qweqwe".toCharArray());
return keyPair;
}
}