Iam developing a cross platform android app using Xamarin. Currently I am stuck with the WebAuthenticationBroker.AuthenticateAsync
method and cannot find anything equivalent to it.
Here is something I want to do in android:
var broker = await WebAuthenticationBroker.AuthenticateAsync(WebAuthenticationOptions.None, startUri, endUri);
var datax = broker.ResponseData;
if (broker.ResponseStatus != WebAuthenticationStatus.Success)
await new Windows.UI.Popups.MessageDialog("Invalid username or user doesn't exists").ShowAsync();
According to the documentation there is no WebAuthenticationBroker
in xamarin as of now. Is there any work around for achieving the same?
Any ideas how this can be achieved with android in xamarin.
Did you look at the Xamarin.Auth? It seems like that's what you want. Here is a little code snippet which would give you a hint about what you can do with it:
The callback event: