|
|
|
@ -4,23 +4,29 @@ spring:
|
|
|
|
|
client:
|
|
|
|
|
registration:
|
|
|
|
|
google:
|
|
|
|
|
client-id: 259821403087-talgepagvnahurp0bfnk55pujrdaec7q
|
|
|
|
|
client-secret: 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
|
|
|
|
|
clientId: 259821403087-talgepagvnahurp0bfnk55pujrdaec7q
|
|
|
|
|
clientSecret: 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
|
|
|
|
|
#clientId: 5014057553-8gm9um6vnli3cle5rgigcdjpdrid14m9.apps.googleusercontent.com
|
|
|
|
|
#clientSecret: tWZKVLxaD_ARWsriiiUFYoIk
|
|
|
|
|
redirectUri: "{baseUrl}/oauth2/callback/{registrationId}"
|
|
|
|
|
scope:
|
|
|
|
|
- profile
|
|
|
|
|
- email
|
|
|
|
|
facebook:
|
|
|
|
|
clientId: 652436969254286
|
|
|
|
|
clientSecret: 822069e9cd00654574d16a88cf3a4be9
|
|
|
|
|
#clientId: 652436969254286
|
|
|
|
|
#clientSecret: 822069e9cd00654574d16a88cf3a4be9
|
|
|
|
|
clientId: 121189305185277
|
|
|
|
|
clientSecret: 42ffe5aa7379e8326387e0fe16f34132
|
|
|
|
|
redirectUri: "{baseUrl}/oauth2/callback/{registrationId}"
|
|
|
|
|
scope:
|
|
|
|
|
- email
|
|
|
|
|
- public_profile
|
|
|
|
|
kakao:
|
|
|
|
|
clientId: 1d0012ecc1e9d454a69b3a850c546879
|
|
|
|
|
clientSecret: bfctm9QldllT81f2UK7L0Cc5QDcDfsYb
|
|
|
|
|
redirectUri: "{baseUrl}/oauth2/callback/{registrationId}"
|
|
|
|
|
clientAuthenticationMethod: post
|
|
|
|
|
authorizationGrantType: authorization_code
|
|
|
|
|
redirectUri: http://localhost:8090/oauth2/code/kakao
|
|
|
|
|
scope:
|
|
|
|
|
- profile_nickname
|
|
|
|
|
- profile_image
|
|
|
|
@ -29,14 +35,21 @@ spring:
|
|
|
|
|
naver:
|
|
|
|
|
clientId: '{네이버 client-id}'
|
|
|
|
|
clientSecret: '{네이버 client-secret}'
|
|
|
|
|
redirectUri: "{baseUrl}/oauth2/callback/{registrationId}"
|
|
|
|
|
clientAuthenticationMethod: post
|
|
|
|
|
authorizationGrantType: authorization_code
|
|
|
|
|
redirectUri: http://localhost:8090/oauth2/code/naver
|
|
|
|
|
scope:
|
|
|
|
|
- nickname
|
|
|
|
|
- email
|
|
|
|
|
- profile_image
|
|
|
|
|
clientName: Naver
|
|
|
|
|
github:
|
|
|
|
|
clientId: d3e47fc2ddd966fa4352
|
|
|
|
|
clientSecret: 3bc0f6b8332f93076354c2a5bada2f5a05aea60d
|
|
|
|
|
redirectUri: "{baseUrl}/oauth2/callback/{registrationId}"
|
|
|
|
|
scope:
|
|
|
|
|
- user:email
|
|
|
|
|
- read:user
|
|
|
|
|
provider:
|
|
|
|
|
kakao:
|
|
|
|
|
authorizationUri: https://kauth.kakao.com/oauth/authorize
|
|
|
|
@ -48,10 +61,14 @@ spring:
|
|
|
|
|
tokenUri: https://nid.naver.com/oauth2.0/token
|
|
|
|
|
userInfoUri: https://openapi.naver.com/v1/nid/me
|
|
|
|
|
userNameAttribute: response
|
|
|
|
|
facebook:
|
|
|
|
|
authorizationUri: https://www.facebook.com/v3.0/dialog/oauth
|
|
|
|
|
tokenUri: https://graph.facebook.com/v3.0/oauth/access_token
|
|
|
|
|
userInfoUri: https://graph.facebook.com/v3.0/me?fields=id,first_name,middle_name,last_name,name,email,verified,is_verified,picture.width(250).height(250)
|
|
|
|
|
|
|
|
|
|
# Spring Security cors 설정 :: CorsConfiguration 설정 값
|
|
|
|
|
cors:
|
|
|
|
|
allowed-origins: 'http://localhost:3000'
|
|
|
|
|
allowed-origins: http://localhost:3000,http://localhost:8090
|
|
|
|
|
allowed-methods: GET,POST,PUT,DELETE,OPTIONS
|
|
|
|
|
allowed-headers: '*'
|
|
|
|
|
max-age: 3600
|
|
|
|
@ -89,5 +106,11 @@ xit:
|
|
|
|
|
# day
|
|
|
|
|
refreshTokenExpiry: 7
|
|
|
|
|
oauth2:
|
|
|
|
|
# After successfully authenticating with the OAuth2 Provider,
|
|
|
|
|
# we'll be generating an auth token for the user and sending the token to the
|
|
|
|
|
# redirectUri mentioned by the client in the /oauth2/authorize request.
|
|
|
|
|
# We're not using cookies because they won't work well in mobile clients.
|
|
|
|
|
authorizedRedirectUris:
|
|
|
|
|
- http://localhost:3000/oauth/redirect
|
|
|
|
|
- http://localhost:3000/oauth2/redirect
|
|
|
|
|
- myandroidapp://oauth2/redirect
|
|
|
|
|
- myiosapp://oauth2/redirect
|