Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

I'm trying to use OAuth2 to access Linkedin but the auth.Completed event is not being fired.

$
0
0

private void Button_Clicked(object sender, EventArgs e)
{
var auth = new OAuth2Authenticator(
clientId: "****",
clientSecret: "****",
scope: "r_liteprofile",
authorizeUrl: new Uri("https://www.linkedin.com/uas/oauth2/authorization"),
redirectUrl: new Uri("http://www.google.co.in/"),
accessTokenUrl: new Uri("https://www.linkedin.com/uas/oauth2/accessToken")
);
auth.AllowCancel = true;
auth.Completed += Auth_Completed;
}

private void Auth_Completed(object sender, AuthenticatorCompletedEventArgs e)
{
//My action
}


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>