build: application.yml oauth 설정
This commit is contained in:
26
src/main/resources/application-oauth.yml
Normal file
26
src/main/resources/application-oauth.yml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
spring:
|
||||||
|
security:
|
||||||
|
oauth2:
|
||||||
|
client:
|
||||||
|
registration:
|
||||||
|
github:
|
||||||
|
client-id: 6c34d9a6903231c5a301
|
||||||
|
client-secret: 비밀키
|
||||||
|
scope: name,email,avatar_url
|
||||||
|
google:
|
||||||
|
client-id: 54767115914-gcla0mork6h3156h4qcutjerm0mdf4fu.apps.googleusercontent.com
|
||||||
|
client-secret: 비밀키
|
||||||
|
scope: profile,email
|
||||||
|
naver:
|
||||||
|
client-id: sCfhQHgPVQFFf8RTGjVe
|
||||||
|
client-secret: 비밀키
|
||||||
|
redirect-uri: {baseUrl}/{action}/oauth2/code/{registrationId}
|
||||||
|
authorization_grant_type: authorization_code
|
||||||
|
scope: name,email,profile_image
|
||||||
|
client-name: Naver
|
||||||
|
provider:
|
||||||
|
naver:
|
||||||
|
authorization_uri: https://nid.naver.com/oauth2.0/authorize
|
||||||
|
token_uri: https://nid.naver.com/oauth2.0/token
|
||||||
|
user-info-uri: https://openapi.naver.com/v1/nid/me
|
||||||
|
user_name_attribute: response
|
||||||
@@ -1 +0,0 @@
|
|||||||
|
|
||||||
3
src/main/resources/application.yml
Normal file
3
src/main/resources/application.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
spring:
|
||||||
|
profiles:
|
||||||
|
include: oauth
|
||||||
Reference in New Issue
Block a user