Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Spring Security 이용한 OAuth + JWT 로그인 구현

NotificationsYou must be signed in to change notification settings

seogineer/demo-oauth-springboot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

로그인 API를 만들면 제공되는 정보들은 공유하면 안되기 때문에 src/main/resources 하위 경로에 application-oauth2.yml 작성해서 각자 client-id와 client-secret 정보를 입력한다.

spring:config:activate:on-profile:localsecurity:oauth2:client:registration:google:client-id:{google 로그인 api를 만들때 발급 받은 client-id}client-secret:{google 로그인 api를 만들때 발급 받은 client-secret}redirect-uri:"http://localhost:8081/login/oauth2/code/google"authorization-grant-type:authorization_codescope:profile, emailkakao:client-id:{kakao 로그인 api를 만들때 발급 받은 client-id}redirect-uri:"http://localhost:8081/login/oauth2/code/kakao"client-authentication-method:POSTauthorization-grant-type:authorization_codescope:profile_nickname, profile_image, account_emailclient-name:Kakaonaver:client-id:{naver 로그인 api를 만들때 발급 받은 client-id}client-secret:{naver 로그인 api를 만들때 발급 받은 client-id}redirect-uri:"http://localhost:8081/login/oauth2/code/naver"authorization-grant-type:authorization_codescope:name, email, profile_imageclient-name:Naverprovider:google:authorization-uri:https://accounts.google.com/o/oauth2/v2/auth?prompt=consent&access_type=offlinetoken_uri:https://oauth2.googleapis.com/tokenuser-info-uri:https://www.googleapis.com/oauth2/v2/userinfokakao:authorization_uri:https://kauth.kakao.com/oauth/authorizetoken_uri:https://kauth.kakao.com/oauth/tokenuser-info-uri:https://kapi.kakao.com/v2/user/meuser_name_attribute:idnaver:authorization_uri:https://nid.naver.com/oauth2.0/authorizetoken_uri:https://nid.naver.com/oauth2.0/tokenuser-info-uri:https://openapi.naver.com/v1/nid/meuser_name_attribute:response

About

Spring Security 이용한 OAuth + JWT 로그인 구현

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp