当 Social Auth 4.6 和 LinkedIn OAuth2 Provider 时,我收到错误
状态参数值与预期值不匹配。
我第一次使用以下代码进行连接:
SocialAuthConfig config = SocialAuthConfig.getDefault();
config.load();
manager = new SocialAuthManager();
manager.setSocialAuthConfig(config);
String authenticationURL = manager.getAuthenticationUrl("linkedin2", successURL);
这是获取配置文件的代码:
authMap = SocialAuthUtil.getRequestParametersMap(request);
AuthProvider provider = manager.connect(authMap);
profile = provider.getUserProfile();
虽然这是第一次,但从下一次开始,它会抛出错误。 有人遇到过类似的问题吗?
最佳答案
已解决并可在最新的socialauth-4.8版本中使用
https://sourceforge.net/projects/socialauth/files/latest/download
关于java - 社交身份验证 - 链接在 OAuth 2 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25685223/