I have a windows phone 8.1 app and I'm trying to do Google Auth using either Azure Mobile Services Auth or Google Auth library and it fails using both methods returning a 400 error. I get to the sign-in page and after signing in it returns the 400 and does not take me to the consent page.
Here's my Google Auth code:
IConfigurableHttpClientInitializer credential;
var clientSecrets = new Uri(Settings.GoogleClientSecretsUri, UriKind.Absolute);
var scopes = new[] {CalendarService.Scope.Calendar};
credential = await GoogleWebAuthorizationBroker
.AuthorizeAsync(
clientSecrets,
scopes,
"user",
CancellationToken.None
);
Initializer = new BaseClientService.Initializer{
HttpClientInitializer = credential,
ApplicationName = Settings.ApplicationName
Azure Auth is very stright forward one line code
azureClient.LoginAsync(MobileServiceAuthenticationProvider.Google);
My Azure Auth code is working fine for Facebook and Microsoft Account. My redirect Uri on the google developer console is of https://todolist.azure-mobile.net/signin-google format and I also tried https://todolist.azure-mobile.net/login/google. Has anyone been successful in using Google Auth on a Windows Phone?