Can anyone provide Xamarin.Android version of the code on this article?
You could refer to the blog: Authenticating Users with an Identity Provider.
Xamarin.Auth is a cross-platform SDK for authenticating users and storing their accounts. It includes OAuth authenticators that provide support for consuming identity providers such as Google, Microsoft, Facebook, and Twitter. This article explains how to use Xamarin.Auth to manage the authentication process in a Xamarin.Forms application.
Thanks. But my question is about Xamarin.Android, not Forms.
You could use it in Xamarin.Android platform.
@pingpong.6106 , sure, feel free to use it. Once you have any issue when use the Xamarin.Auth, you can create a new about it.
Do you mean Xamarin.Auth is used on the code on this link https://docs.microsoft.com/en-us/xamarin/xamarin-forms/enterprise-application-patterns/authentication-and-authorization?
The short answer is NO.
There are many approaches to integrating authentication and authorization into a Xamarin.Forms app that communicates with an ASP.NET MVC web application. The link you posted is talk about performs authentication and authorization with a containerized identity microservice that uses IdentityServer 4 for mobile app. The document is talk more about web application. So it didn't use any Xamarin.Auth code.
It's a cross-platform Client SDK for authenticating users and storing their accounts. You could use Xamarin.Auth to authenticate users via standard authentication mechanisms (e.g. OAuth 1.0 and 2.0), and store user credentials.
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies