private void Login(HolisticWare.Auth.OAuth1 oauth1) { global::Xamarin.Auth.OAuth1Authenticator auth = new global::Xamarin.Auth.OAuth1Authenticator ( consumerKey: oauth1.OAuth_IdApplication_IdAPI_KeyAPI_IdClient_IdCustomer, consumerSecret: oauth1.OAuth1_SecretKey_ConsumerSecret_APISecret, requestTokenUrl: oauth1.OAuth1_UriRequestToken, authorizeUrl: oauth1.OAuth_UriAuthorization, accessTokenUrl: oauth1.OAuth1_UriAccessToken, callbackUrl: oauth1.OAuth_UriCallbackAKARedirect, getUsernameAsync: null ); auth.Completed += auth_Completed; //PresentViewController (auth.GetUI (), true, null); Uri uri = auth.GetUI(); var rv = System.Windows.Application.Current.RootVisual; Microsoft.Phone.Controls.PhoneApplicationFrame paf = null; paf = rv as Microsoft.Phone.Controls.PhoneApplicationFrame; paf.Navigate(uri); return; }
private void Login(Xamarin.Auth.XamarinForms.Helpers.OAuth1 oauth1) { global::Xamarin.Auth.OAuth1Authenticator auth = new global::Xamarin.Auth.OAuth1Authenticator ( consumerKey: oauth1.OAuth_IdApplication_IdAPI_KeyAPI_IdClient_IdCustomer, consumerSecret: oauth1.OAuth1_SecretKey_ConsumerSecret_APISecret, requestTokenUrl: oauth1.OAuth1_UriRequestToken, authorizeUrl: oauth1.OAuth_UriAuthorization, accessTokenUrl: oauth1.OAuth1_UriAccessToken, callbackUrl: oauth1.OAuth_UriCallbackAKARedirect, getUsernameAsync: null ); auth.Completed += auth_Completed; activity.StartActivity(auth.GetUI(activity)); return; }
private void Login (Xamarin.Auth.Helpers.OAuth1 oauth1) { global::Xamarin.Auth.OAuth1Authenticator auth = new global::Xamarin.Auth.OAuth1Authenticator ( consumerKey: oauth1.OAuth_IdApplication_IdAPI_KeyAPI_IdClient_IdCustomer, consumerSecret: oauth1.OAuth1_SecretKey_ConsumerSecret_APISecret, requestTokenUrl: oauth1.OAuth1_UriRequestToken, authorizeUrl: oauth1.OAuth_UriAuthorization, accessTokenUrl: oauth1.OAuth1_UriAccessToken, callbackUrl: oauth1.OAuth_UriCallbackAKARedirect, getUsernameAsync: null ); auth.Completed += Auth_Completed; //PresentViewController (auth.GetUI (), true, null); return; }