Currently I am developing Xamarin Forms application and I added Google Authentication. Here is my code from PCL:
_var authenticator = new OAuth2Authenticator(
clientId,
null,
Constants.Scope,
new Uri(Constants.AuthorizeUrl),
new Uri(redirectUri),
new Uri(Constants.AccessTokenUrl),
null,
true);
authenticator.Completed += this.OnAuthCompleted;
authenticator.Error += this.OnAuthError;
AuthenticationState.Authenticator = authenticator;
var presenter = new Xamarin.Auth.Presenters.OAuthLoginPresenter();
presenter.Login(authenticator);_
I am using latest version of Xamarin.Auth, which is 1.5.0.3 This is what I receive: Screenshot
I went through many articles and code examples, but looks like maybe google updated their authentication once again. Link 1, Link 2, Link 3, Link 4. Event on official page for Xamarin.Forms example is invalid and not working Link 5.
I checked several code examples, but again no success, Sample 1 and multiple samples here. I download source and tried to use it, expecting that it's working, but they're failing as well.
Do you have solution for this issue or any article, which is up to date and you know it's working. As well code sample would be brilliant.
Thanks in advance!