Skip to content
This repository was archived by the owner on Apr 21, 2024. It is now read-only.

boyd-dev/MyNewProject

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

기존 게시판 구현예제의 인증 처리를 Spring Security OAuth2 2.0.12을 적용하여 구현하였습니다. 게시판 사용을 위한 클라이언트 인증 예제가 되겠습니다. Google을 Authentication Provider로 사용하였으므로 Developer console에서 client_id, client_secret을 발급받아서 global.properties에 설정해야 합니다.

  • Google 콘솔에서 "승인된 리디렉션 URI"는 http://localhost:8080/myapp/oauth2/commence 으로 설정하였습니다. 각자 환경에 따라 global.properties의 내용을 변경하십시오.

  • Spring Security OAuth2 설정은 XML 방식으로 합니다(context-security.xml 참조).

  • 이메일과 프로파일을 scope로 하여 이메일을 사용자 아이디로 사용하고 DB에 저장하지는 않습니다. 토큰이나 기타 다른 정보를 저장하지 않고 인증 용도로만 사용합니다.

다음 글을 참고하시면 도움이 됩니다.😄

lorenzo-dee blog
Using OAuth 2.0 for Web Server Applications

Releases

No releases published

Packages

 
 
 

Contributors