일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- While
- 연산자
- JPA
- Class
- IAC
- ansible
- C++
- programmers
- Spring Security
- 자료형
- Sprint Security
- datastructure
- datatype
- MergeSort
- For
- SpringBoot Initializr
- Fluent-bit
- Kotlin
- jvm
- zgc
- quicksort
- 기초
- Java
- lambda
- g1gc
- Algorithm
- redis
- JavaScript
- If
- UserDetails
Archives
- Today
- Total
목록UserDetailsService (1)
뭐라도 끄적이는 BLOG
Custom UserDetailsService & Custom User
이번에는 사용자가 직접 UserDetailsService를 구현하는 class를 생성하고 Bean으로 등록한다. 그리고 직접 User정보를 데이터베이스에서 가지고와서 인증에 사용되어질 수 있도록 User를 상속한 MyUser를 만들어 반환하는 작업을 진행해 본다. 추가로 인증 성공시와 실패시 이벤트 설정을 어떻게 하는지에 대해서도 살펴본다. Inmemory UserDetailsService public class MyUserDetailsService implements UserDetailsService { @Override public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException { if (username..
SpringFramework/Spring Security
2023. 7. 10. 07:52