We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 396a206 commit 3437d3bCopy full SHA for 3437d3b
src/main/java/cmf/commitField/global/security/SecurityConfig.java
@@ -23,6 +23,13 @@ public SecurityConfig(CustomOAuth2UserService customOAuth2UserService) {
23
24
@Bean
25
protected SecurityFilterChain config(HttpSecurity http) throws Exception {
26
+ // 권한 설정
27
+ http
28
+ .authorizeHttpRequests(auth -> auth
29
+ .requestMatchers("/actuator/**").permitAll() // actuator 엔드포인트 허용
30
+ .anyRequest().authenticated() // 그 외 모든 요청은 인증 필요
31
+ );
32
+
33
//로그인 관련 설정
34
http
35
.oauth2Login(oauth2 -> oauth2
0 commit comments