스프링) SpringSecurity - 9) Oauth2.0 구글 로그인 및 자동 회원 가입 진행 완료
·
자바 탐구
Oauth2.0 구글 로그인 및 자동 회원 가입 Oauth2User는 user의 정보를 Attributes() 안에 담고 있다. 이는 Map형식이다. getAttributes : { sub=000000000000000000000, name=xxx, given_name=xx, family_name=x, picture=https://lh3.googleusercontent.com/a/AAcHTtcU7e8jEeWSfsxjs8_sxp_U1XoKdWQ5HJFQNPqt=s96-c, email=xxx@gmail.com, email_verified=true, locale=ko } PrincipalDetails package com.example.security1.auth; import com.example.securit..
스프링) SpringSecurity - 4) Security 로그인
·
자바 탐구
Security 로그인 SecurityConfig package com.example.security1.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.security.crypto.bcry..
오지랖 토끼
'principal' 태그의 글 목록