Hi to all
I am trying to login in with Xamarin.Auth.
This is my first attemp so sorry for my mistakes.
My code is simple:
var auth2 = new OAuth2Authenticator("", "",
new Uri("https://mysite.com/Login/index.html?name=aName&appid=1"),
new Uri("myapp://")
,null, true
);
auth2.Completed += OnAuthCompleted;
auth2.Error += Auth_Error;
var presenter = new Xamarin.Auth.Presenters.OAuthLoginPresenter();
presenter.Login(auth2);
Here an error message appears and says that clientID cannot be null.
How can i ovveride this? With custom OAuth2Authenticator can be done?
Is CallBack Url OK?
Any example on custom oauth2 please?
Thanks in advance
Answers
I think you can first check NovaJoe 's article Using Xamarin.Auth with Xamarin.Forms about this.
He has also provided a much better example on Stack Overflow here : https://stackoverflow.com/questions/24105390/how-to-log-in-to-facebook-in-xamarin-forms/24423833#24423833
Hope It will be helpful for you.
Thos are old examples using PCL projects.
Then you can check the official sample of Xamarin.Auth
There is a xamarin form sample AuthExample
For more details, you can check: https://github.com/xamarin/Xamarin.Auth
Hope it can help you.