
https://docs.spring.io/spring-security/site/docs/current/api/org/springframework/security/web/authentication/AuthenticationSuccessHandler.html AuthenticationSuccessHandler (spring-security-docs 6.2.1 API) Strategy used to handle a successful user authentication. Implementations can do whatever they want but typical behaviour would be to control the navigation to the subsequent destination (using..

https://tose33.tistory.com/1303 Google OAuth2 구글 로그인 구현 https://lsh-instaweb.herokuapp.com/login 로그인 lsh-instaweb.herokuapp.com OAuth (Open Authorization) 만든 웹사이트에 구글로 로그인을 구현하고 싶어서 이에 대해서 공부해봤다. 요즘 많은 웹사이 tose33.tistory.com https://tose33.tistory.com/1304 git 프로젝트의 secret key 관리, heroku 배포 시 secret key 관리 이전에 구글 로그인을 구현했는데 구현을 다 하고 나서 문제가 생겼다. https://tose33.tistory.com/1303 Google OAuth2 구글 로그..

프로젝트 진행 중 순환 참조 오류가 발생했다. 에러 메세지를 읽어 보면 principalOAuth2Service 와 securityConfig 가 서로 순환참조를 하고 있기 때문에 실패했다고 한다. 내가 알기로 설정에서 이걸 그냥 무시할수도 있기는 한데 원인과 해결방법을 기록한다. SecurityConfig.java @Configuration @EnableWebSecurity public class SecurityConfig { private final PrincipalOAuth2UserService principalOAuth2UserService; @Autowired public SecurityConfig(PrincipalOAuth2UserService principalOAuth2UserService)..

아래는 Authentication (인증) 요청부터 Spring security 가 어떤 흐름으로 처리하는지 정리한 것이다. 위 그림의 번호와는 상관없다. 사용자가 인증을 요청한다 SecurityConfig 설정 클래스에서 설정한 인증이 필요한 경로에 요청이 왔을때 포함 스프링 시큐리티가 요청을 intercept 해서 사용자가 인증됐는지 확인한다. 인증이 안됐다면 로그인 페이지로 리다이렉트 시킨다. 유저는 Credential (설정에 따라, 대부분의 경우 username, password) 을 입력한다 AuthenticaionFilter (credential 이 username,password 라면 UsernamePasswordAuthenticationFilter) 가 입력한 credential 을 확인..
- Total
- Today
- Yesterday
- C
- greedy
- 조합
- Brute Force
- two pointer
- db
- 이분탐색
- permutation
- floyd warshall
- Dijkstra
- Kruskal
- back tracking
- graph
- DP
- 재귀
- Spring
- recursion
- dfs
- MVC
- 자료구조
- Python
- priority queue
- Implementation
- Unity
- binary search
- BFS
- Tree
- CSS
- C++
- Stack
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |