дописала security
This commit is contained in:
committed by
skettiks
parent
a10737a7f7
commit
82a0cec1cc
@@ -25,6 +25,38 @@ spring:
|
||||
console:
|
||||
enabled: ${SPRING_H2_CONSOLE_ENABLED:true}
|
||||
path: /h2-console
|
||||
security:
|
||||
oauth2:
|
||||
client:
|
||||
registration:
|
||||
google:
|
||||
client-id: ${OAUTH2_GOOGLE_CLIENT_ID:test-client-id}
|
||||
client-secret: ${OAUTH2_GOOGLE_CLIENT_SECRET:test-secret}
|
||||
scope: email,profile
|
||||
yandex:
|
||||
client-id: ${OAUTH2_YANDEX_CLIENT_ID:test-client-id}
|
||||
client-secret: ${OAUTH2_YANDEX_CLIENT_SECRET:test-secret}
|
||||
authorization-grant-type: authorization_code
|
||||
redirect-uri: "{baseUrl}/login/oauth2/code/{registrationId}"
|
||||
scope: login:email,login:avatar
|
||||
vk:
|
||||
client-id: ${OAUTH2_VK_CLIENT_ID:test-client-id}
|
||||
client-secret: ${OAUTH2_VK_CLIENT_SECRET:test-secret}
|
||||
authorization-grant-type: authorization_code
|
||||
client-authentication-method: client_secret_post
|
||||
redirect-uri: "{baseUrl}/login/oauth2/code/{registrationId}"
|
||||
scope: email
|
||||
provider:
|
||||
yandex:
|
||||
authorization-uri: https://oauth.yandex.ru/authorize
|
||||
token-uri: https://oauth.yandex.ru/token
|
||||
user-info-uri: https://login.yandex.ru/info
|
||||
user-name-attribute: id
|
||||
vk:
|
||||
authorization-uri: https://oauth.vk.com/authorize
|
||||
token-uri: https://oauth.vk.com/access_token
|
||||
user-info-uri: https://api.vk.com/method/users.get?v=5.131&fields=photo_200
|
||||
user-name-attribute: response
|
||||
|
||||
server:
|
||||
shutdown: graceful
|
||||
|
||||
Reference in New Issue
Block a user