问题描述
仅当在Facebook Developer应用程序配置中禁用"Require App Secret"
选项时,我才能使用Facebook登录到SpringBoot应用程序。
启用额外的(推荐)安全检查后,我会收到错误消息
org.springframework.security.oauth2.core.OAuth2AuthenticationException: [invalid_user_info_response]
An error occurred while attempting to retrieve the UserInfo Resource: Error details: [UserInfo Uri:
https://graph.facebook.com/me?fields=id,name,email,Error Code: {message=API calls from the server
require an appsecret_proof argument,type=GraphMethodException,code=100,fbtrace_id=xxxx}]
很明显,Spring Security尝试访问Facebook(调用https://graph.facebook.com/me?fields=id,email
)以检索经过身份验证的用户,但未能传递额外的参数appsecret_proof
。
在深入研究SpringSecurity文档和论坛之后,现在还不清楚如何让Spring添加额外的令牌。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)