Skip to content

Commit

Permalink
[Refactor] 접근 권한 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jiyunio committed Jun 8, 2024
1 parent c64c6fb commit f3f6930
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti

.authorizeHttpRequests(authorize -> authorize
.requestMatchers("/member/sign-up", "/member/sign-in").permitAll()
.requestMatchers("http://na2ru2.me:5151/**", "/v3/**").permitAll()
.requestMatchers("http://na2ru2.me:5151/swagger-ui/index.html#/**", "/v3/**").permitAll()
.anyRequest().authenticated())
.sessionManagement(session -> session
.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
Expand All @@ -49,5 +49,4 @@ public AuthenticationProvider authenticationProvider() {
//AuthenticationProvider로 Custom 메소드 이용
return new CustomAuthenticationProvider(userDetailsService, passwordEncoder());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import io.swagger.v3.oas.models.security.SecurityScheme;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Configuration
public class SwaggerConfig {
Expand Down

0 comments on commit f3f6930

Please sign in to comment.