Browsed by
Category: Xamarin.Android

Authenticate users through Facebook using Xamarin.Auth

Authenticate users through Facebook using Xamarin.Auth

Following the previous post on Google authentication, I will now focus on how to authenticate on Facebook with Xamarin.Auth and retrieve the user’s email address. In case you missed the Google post, you can read all about it here: Authenticate users through Google with Xamarin.Auth As previously, a sample is available on GitHub: https://github.com/TimLariviere/Sample-XamarinAuth-Facebook Facebook authentication with Xamarin.Auth Unlike Google, Facebook doesn’t require us to use native SDKs to authenticate users. So we can let the IsUsingNativeUI flag of Xamarin.Auth…

Read More Read More

Authenticate users through Google with Xamarin.Auth

Authenticate users through Google with Xamarin.Auth

I’ve recently worked on a Xamarin app that needed to authenticate its users against Facebook, Google, and Twitter, and needed to retrieve their email addresses. Xamarin.Auth did the heavy lifting for us, handling all the OAuth authentication flow. But configuring it for Facebook, Google, and Twitter can be complicated as their configurations are (not so) slightly different. After quite a bit of struggle, I decided to share every single steps that led me to successfully implement authentication and getting the…

Read More Read More

Call an Azure AD protected API in Xamarin/UWP apps

Call an Azure AD protected API in Xamarin/UWP apps

When we talk about mobile apps, a web API is generally hiding in the background, doing most of the work like connecting to a database, verifying authorization, computing data, and so on. Like everything else, those APIs need protection against unauthorized calls that don’t come from our mobile apps. In this post, I will explain how to leverage Azure Active Directory to protect our WebAPI without any code, and how to call this WebAPI from our mobile apps. So, how…

Read More Read More

Xamarin – Using SQLite.NET Async with PCL

Xamarin – Using SQLite.NET Async with PCL

With Xamarin, it is now easier than ever to share most of the logic between your apps. Most today’s apps use a lot of data, so deciding how to store them locally can prove a challenge. SQLite provides a great way to store and query those easily and does support Xamarin. In the original post, we’ll see how to setup SQLite in a portable project (PCL) shared by two Xamarin projects (Android, iOS) and a UWP project in Visual Studio….

Read More Read More