In this article i will show you how authenticate against google with oauth and a mobile app.
When i was trying to get the authentication running, i did not find a good working example for a android phone and Xamarin. There are a lot of good post and blogs out in the internet, but somehow they uses deprecated libs a lot.
All the code i use here can be found on my github page
Setup your data and environment
In this example i will use following libs
- Xamarin.Forms (5.0.0)
- Xamarin.Essentials(1.7.0)
- RestSharp (107.3.0)
- Google.Apis.Auth (1.57.0)
- IdentityModel (1.6)
- Google.Apis.AndroidManagement.v1(1.57.0) (only for a scope)
The following data needs to prepared in order to start the App
Weiterlesen