inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

스프링 시큐리티

SecurityContextHolder와 Authentication

SecurityContext / Authentication

141

슬픈 두꺼비

작성한 질문수 5

0

삭제된 글입니다

spring java

답변 2

1

백기선

강의에서 SessionManagement를 다루긴 했지만 말씀하신 구체적인 경우는 다루지 않았네요. 그쪽을 좀 더 공부해 보시면 SessionManagement에 SeesionRepository를 등록할 수 있고 거기에 등록한 SessionRepository를 통해서 현재 애플리케이션에 생성된 세션과 유저 정보를 참조할 수 있을겁니다. 그걸 이용해서 B 유저에 해당하는 세션을 가져와서 expire 시켜야 할 거 같네요.

https://docs.spring.io/spring-security/site/docs/current/api/org/springframework/security/core/session/SessionRegistry.html

https://docs.spring.io/spring-security/site/docs/current/api/org/springframework/security/core/session/SessionInformation.html

위에 두 인터페이스를 잘 살펴보시기 바랍니다.

0

슬픈 두꺼비

감사합니다. 선생님 덕분에 해결했습니다.!!

원하는대로 결과는 나오나 정답인지는 모르겠네요.. ㅎ

커스텀 로그인 페이지를 등록할 경우 LogoutFilter의 등록 여부 질문

0

383

1

anonymousClass를 사용하는 이유

0

387

1

ExcpetionTranslationFilter가 FilterSecurityInterceptor에서 발생하는 예외만 처리하는 이유

0

242

1

Principal 인터페이스와 User 클래스의 관계

0

756

1

passwordEncoder 질문드립니다.

0

320

1

WebSecurityConfigurerAdapter is deprecated 가 불편하신 분들을 위해

6

864

1

왜 스프링은 userid가 아니고 username을 사용했을까요?

0

1022

1

무상태성

0

346

2

로그인 후 로그인 페이지 접속

0

282

1

AuthenticationException은 어떤 경우에 발생하는지

0

556

1

AccountService에 비밀번호

1

224

1

커스텀 어노테이션 의 `커스텀 value` 설정방법에 관한 질문입니다.

0

356

1

passwordEncoder 빈 생성 시 차이

0

253

1

Bean 등록 관련 질문입니다.

0

247

1

시큐리티 전략관련

0

354

3

브라우저 기반 요청이 클라이언트의 요청을 처리 -> 의 의미?

0

228

1

AccountControllerTest 실행오류

0

1066

1

알려주신대로 설정을 해도 다시 302요청을 보냅니다....

0

342

1

voter에 대해 질문이 있습니다.

0

225

1

제가 맞게 이해한것인지 궁금합니다.

1

233

1

Spring security test 수행시 @AuthenticationPrincipal 가 null 로 세팅됨

0

549

1

Spring security Multi 인증 문의드려요

0

287

1

ProviderManager 문의

0

267

1

UserDetailsService 가 DaoAuthenticationProvider 에 어떻게 주입 되는지 알 수 있을 까요?

0

326

1