arvind baldaniya

arvind baldaniya

  • NA
  • 339
  • 141.3k

AccessTockenUrl is null

May 5 2017 2:22 AM
AccessTockenUrl is null how to Login google without webview 
 
public class ServerInfo
{
public static Uri AuthorizationEndpoint = new Uri("http://xamuath.azurewebsites.net/oauth/authorize");
public static Uri TokenEndpoint = new Uri("http://xamuath.azurewebsites.net/oauth/token");
public static Uri ApiEndpoint = new Uri("http://xamuath.azurewebsites.net/api/whoami");
public static Uri RedirectionEndpoint = new Uri("http://www.xamarin.com");
public static string ClientId = "129890716-tlcae38h8k4va7so4kq25theeiml1iv8.apps.googleusercontent.com";
public static string ClientSecret = "Qt3jLqJn65034gfacHB3AX";
}
 
public void Button_Login_Google(object sender, EventArgs e)
{
OAuth2Authenticator authenticator = new OAuth2Authenticator
(
ServerInfo.ClientId,
Scope,
ServerInfo.AuthorizationEndpoint,
ServerInfo.RedirectionEndpoint,
null,
isUsingNativeUI: native_ui
);
authenticator.Completed += OnAuthCompleted;
authenticator.Error += OnAuthError;
var presenter = new Xamarin.Auth.Presenters.OAuthLoginPresenter();
presenter.Login(authenticator);
return;
}
 

Attachment: MyError.rar