I am currently working the social login modules using LinkedIn. The official documentation says the old method using OAuth 1.0 becomes obsolete since 12 Jan 2019.
Would you please tell me what would the request call to be changed if using O Auth 2.0 and mentioned in the microsoft doc ?
Below is my login method:
void startAutheniticate() {
LISessionManager.getInstance(getApplicationContext()).init(this,
buildScope(),
new AuthListener() {
@Override
public void onAuthSuccess() {
// Saved AccessToken
AccessToken accessToken = LISessionManager.getInstance(getApplicationContext()).getSession().getAccessToken();
}
@Override
public void onAuthError(LIAuthError error) {
}
}, true);
}
public static Scope buildScope() {
return Scope.build(Scope.R_BASICPROFILE, Scope.R_EMAILADDRESS, Scope.W_SHARE);
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
LISessionManager.getInstance(getApplicationContext()).onActivityResult(this, requestCode, resultCode, data);
}