When writing code in C#, I often come across a dependency that is hard to work with. Usually this comes in one of two forms: Static classes that are built into the .NET framework, or external libraries that don’t provide interfaces to use. Whenever I write code that takes on a dependency like this, I use the Wrapper Pattern.
We previously looked how to create a Xamarin Forms App using Azure Mobile Services for storing and retrieving data. However, up until now, we have been saving the data globally so that it is accessible to all users. This post will explore how to add device-specific authentication to each app so that users can register and manage their own private data using any of the supported authentication providers.