- SecurityContextHolder 설정
https://yoon0120.tistory.com/48

====================================================================================================

- 로그인 후 다른페이지로 redirect 하기
https://www.baeldung.com/spring-security-redirect-login


https://www.baeldung.com/spring_redirect_after_login




- 로그인 정보 얻기 (http://syaku.tistory.com/278)
// 첫번째 방법
Authentication auth = SecurityContextHolder.getContext().getAuthentication();
logger.info(auth.toString());

OR

Authentication authentication = (Authentication)session.getAttribute(HttpSessionSecurityContextRepository.SPRING_SECURITY_CONTEXT_KEY);

// 두번째 방법
User user = (User)SecurityContextHolder.getContext().getAuthentication().getPrincipal();
logger.info(user.toString());

// 세번째 방법
logger.info(principal.toString());

====================================================================================================

- spring security 설정 설명

https://blog.naver.com/neem693/221651325719



- Spring boot에서 Spring security를 사용하여 로그인 하기

https://www.baeldung.com/spring-security-authentication-provider



https://www.baeldung.com/spring-security-login



https://umbum.tistory.com/902



https://wedul.site/170


- Spring Boot에 Security 적용하기

ttp://progtrend.blogspot.com/2018/07/spring-boot-security.html






'spring-security' 카테고리의 다른 글

rest login & ajax login  (0) 2020.07.19
CSRF 관련  (0) 2020.07.17
CORS 설정  (0) 2020.07.17
OAuth2 관련 글  (0) 2020.03.03
spring security 5.0 에서 달라진 암호변환정책, DelegatingPasswordEncoder  (0) 2020.02.18
Posted by 張's blog
,