void LinkedIn_Button_Clicked(object sender, EventArgs e) { var authenticator = new OAuth2Authenticator( clientId: "772sgat14hsdye", clientSecret: "vWD595X5OBRZhF0N", scope: "r_liteprofile", authorizeUrl: new Uri("https://www.linkedin.com/uas/oauth2/authorization"), redirectUrl: new Uri("https://indiespring.com/"), accessTokenUrl: new Uri("https://www.linkedin.com/uas/oauth2/accessToken"), null, false); var page = new AuthenticatorPage(authenticator); authenticator.Completed += OnLinkedInAuthenticationComplete; Application.Current.MainPage.Navigation.PushModalAsync(page); }
public Authenticator(Xamarin.Auth.Authenticator authenticator) { AuthenticationPage = new AuthenticatorPage(authenticator); authenticator.Completed += OnAuthCompleted; authenticator.Error += OnAuthError; }