Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spring-security-oauth2-client로 social provider 정보 가지고 올때 #7

Open
LeoHeo opened this issue Apr 17, 2018 · 0 comments
Open
Assignees
Labels
삽질 삽질한 것들에 대한 기록

Comments

@LeoHeo
Copy link
Owner

LeoHeo commented Apr 17, 2018

// don't create session
.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and()

위와 같은 설정이되어 있으면 세션을 사용하지 않기 때문에

social 로그인을 하고 나서 HttpSessionSecurityContextReposityDefaultOAuth2User principal이 null이 된다.

그래서 기본 default 설정인 IF_REQUIRED로 설정해야 한다.

@LeoHeo LeoHeo added the 삽질 삽질한 것들에 대한 기록 label Apr 17, 2018
@LeoHeo LeoHeo self-assigned this Apr 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
삽질 삽질한 것들에 대한 기록
Projects
None yet
Development

No branches or pull requests

1 participant