Skip to content

Commit

Permalink
Merge pull request #25 from edu-pi/feature/issue24
Browse files Browse the repository at this point in the history
[#24]faet: sse-connection exception 해결 및 패키지 구조 변경
  • Loading branch information
SongGwanSeok authored Oct 2, 2024
2 parents 8599704 + 8a6cdf2 commit 51fc001
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package soma.edupi.gateway;
package soma.edupigateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package soma.edupi.gateway.auth;
package soma.edupigateway.auth;

import io.jsonwebtoken.Claims;
import io.jsonwebtoken.JwtException;
Expand All @@ -10,7 +10,7 @@
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Component;
import soma.edupi.gateway.exception.UnAuthorizedException;
import soma.edupigateway.exception.UnAuthorizedException;

@Component
public class TokenProvider {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package soma.edupi.gateway.config;
package soma.edupigateway.config;

import java.util.List;
import org.springframework.context.annotation.Bean;
Expand Down Expand Up @@ -28,6 +28,7 @@ public CorsConfigurationSource corsConfigurationSource() {
configuration.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "OPTIONS"));
configuration.setAllowedHeaders(
List.of("Content-Type", "Authorization", "Accept", "Access-Control-Allow-Origin"));
configuration.setExposedHeaders(List.of("Content-Type"));
configuration.setAllowCredentials(true);
configuration.setMaxAge(3600L);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package soma.edupi.gateway.config;
package soma.edupigateway.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.gateway.route.RouteLocator;
import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import soma.edupi.gateway.filter.AuthenticationFilter;
import soma.edupigateway.filter.AuthenticationFilter;

@Configuration
public class RoutingConfig {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package soma.edupi.gateway.exception;
package soma.edupigateway.exception;

import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import soma.edupi.gateway.models.ErrorResponse;
import soma.edupigateway.models.ErrorResponse;

@Slf4j
@RestControllerAdvice
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package soma.edupi.gateway.exception;
package soma.edupigateway.exception;

import lombok.Getter;
import org.springframework.http.HttpStatus;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package soma.edupi.gateway.filter;
package soma.edupigateway.filter;

import io.jsonwebtoken.Claims;
import java.util.Optional;
Expand All @@ -12,8 +12,8 @@
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.stereotype.Component;
import org.springframework.util.MultiValueMap;
import soma.edupi.gateway.auth.TokenProvider;
import soma.edupi.gateway.exception.UnAuthorizedException;
import soma.edupigateway.auth.TokenProvider;
import soma.edupigateway.exception.UnAuthorizedException;

@Slf4j
@Component
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package soma.edupi.gateway.filter;
package soma.edupigateway.filter;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package soma.edupi.gateway.models;
package soma.edupigateway.models;

import lombok.Getter;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package soma.edupi.gateway;
package soma.edupigateway;

import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
Expand Down

0 comments on commit 51fc001

Please sign in to comment.