공부/SPRING SECURITY
-
권한별로 적용하기 package com.example.ssiach7ex1.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.Customizer; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.core.userdetails.User; import org.springframework.security.core...
스프링 시큐리티 인 액션(5) - 권한/역할 적용하기권한별로 적용하기 package com.example.ssiach7ex1.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.Customizer; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.core.userdetails.User; import org.springframework.security.core...
2023.12.21 -
Configuration package com.example.ssiach5ex4.config; import com.example.ssiach5ex4.handler.LoginFailureHandler; import com.example.ssiach5ex4.handler.LoginSuccessHandler; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.Customiz..
스프링 시큐리티 인 액션 (4) - 로그인 성공/실패 핸들러Configuration package com.example.ssiach5ex4.config; import com.example.ssiach5ex4.handler.LoginFailureHandler; import com.example.ssiach5ex4.handler.LoginSuccessHandler; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.Customiz..
2023.12.20 -
Configuration package com.example.ssiach5ex3.config; import lombok.RequiredArgsConstructor; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.web.SecurityFilterChain; @Configuration @RequiredArgsConstructor public clas..
스프링 시큐리티 인 액션 (3) - SecurityContextConfiguration package com.example.ssiach5ex3.config; import lombok.RequiredArgsConstructor; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.web.SecurityFilterChain; @Configuration @RequiredArgsConstructor public clas..
2023.12.19 -
Configuration package com.example.ssiach3ex1.config; import com.example.ssiach3ex1.model.User; import com.example.ssiach3ex1.service.PrincipalDetailsService; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDeta..
스프링 시큐리티 (2) - 사용자 관리Configuration package com.example.ssiach3ex1.config; import com.example.ssiach3ex1.model.User; import com.example.ssiach3ex1.service.PrincipalDetailsService; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDeta..
2023.12.18 -
시큐리티 환경 설정 package com.example.ssiach2ex2.config; import com.example.ssiach2ex2.security.CustomAuthenticationProvider; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.authentication.AuthenticationManager; import org.springframework.se..
스프링 시큐리티 인 액션 (1) 구현하기시큐리티 환경 설정 package com.example.ssiach2ex2.config; import com.example.ssiach2ex2.security.CustomAuthenticationProvider; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.authentication.AuthenticationManager; import org.springframework.se..
2023.12.17