Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- EnableAutoConfiguration
- WebApplication Type
- 외부설정
- 정적 리소스
- 백준
- Spring Security
- 스프링부트
- webjar
- HttpMessageConverters
- 리소스핸들러
- rest api
- 스프링 부트
- 알고리즘
- application.properties
- 백기선
- 브루트포스
- Application Runner
- JsonSerializer
- HATEOAS
- 리소스 서버
- AuthenticationPrincipal
- JPA
- @Profile
- @ConfigurationProperties
- 백트래킹
- OAuth2
- 다익스트라
- Application Event
- cors
- Application Argument
Archives
- Today
- Total
목록AuthenticationPrincipal (1)
아카이브
[스프링 기반 REST API 개발] 시큐리티 현재 사용자 조회하기
SecurityContext 자바 ThreadLocal 기반 구현으로 인증 정보를 담고 있다. ※ ThreadLocal ? 오직 한 Thread에 의해서 read/write 가능한 variable을 생성할 수 있도록 하는 것(Thread Local Variable) 인증 정보를 꺼내는 방법 Authentication authentication = SecurityContextHolder.getContext().getAuthentication(); // Anonymous인 경우 principal = "anonymousUser" 로 String 이다. @AuthenticationPrincipal spring.security.User user 인증을 안했다 ? null : username과 authorities..
Spring/스프링 기반 REST API 개발
2021. 1. 9. 22:01