When Social Auth 4.6 and LinkedIn OAuth2 Provider, I am getting an error
State parameter value does not match with expected value.
I am using the following code to connect first time:
SocialAuthConfig config = SocialAuthConfig.getDefault();
config.load();
manager = new SocialAuthManager();
manager.setSocialAuthConfig(config);
String authenticationURL = manager.getAuthenticationUrl("linkedin2", successURL);
And this is the code to get the profile:
authMap = SocialAuthUtil.getRequestParametersMap(request);
AuthProvider provider = manager.connect(authMap);
profile = provider.getUserProfile();
This works for the first time though, but from next time, it throws an error. Anyone faced any issues similar to this?