ng-cordova-oauth: Cordova Oauth linkedin error "Sign in flow was cancelled"

I am following the Cordova Oauth procedure to get the access token, But after the login success i am always getting “Sign in flow was cancelled”. I am using from android mobile. I register developer account in linkedin. Please help me to resolve the issues.

My Code:

$cordovaOauth.linkedin(“75*********y", "b******_4", [“r_basicprofile”], "7_******a”).then(function(result) { alert(“accesstoken result”); },function(error) { alert("accesstoken error "+error);

        });

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 17 (3 by maintainers)

Most upvoted comments

I just tested and it works fine for me:

linkedin-oauth

This goes in combination with the following code:

$scope.linkedin = function() {
        $cordovaOauth.linkedin("CLIENT_ID_HERE", "CLIENT_SECRET_HERE", ["r_basicprofile", "r_emailaddress"], "nraboy-test").then(function(result) {
            console.log("RESPONSE -> " + JSON.stringify(result));
        }, function(error) {
            console.log("ERROR -> " + JSON.stringify(error));
        });
    }

To answer @priya-sookshum-labs question, we are using a secret because when I created the library, LinkedIn only supported explicit grants. Are you saying LinkedIn now supports implicit grants?

I am closing this ticket as there is no reproducible problem.

Best,