spring:
datasource:
url: jdbc:mysql://localhost:3306/bydb?serverTimezone=UTC&useSSL=false
username: root
password: 259785
security:
oauth2:
client:
registration:
facebook:
clientId: 1421684284634858
clientSecret: **********
scope:
- email
- public_profile
vkontakte:
clientId: 6811371
clientSecret: *******
redirect-uri-template: '{baseUrl}'
client-name: vkontakte
authorization-grant-type: authorization_code
scope:
- email
provider:
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)
vkontakte:
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
一切都与facebook兼容,但是当我添加VK时,会发生错误:
您的登录尝试失败,请重试。
原因:[invalid_client] client_secret未定义
我正确指定了cclient_secret,我是从应用程序复制的
可能是什么问题?