Skip to content
This repository was archived by the owner on Apr 29, 2024. It is now read-only.

Latest commit

 

History

History

TodoAzureAuthADB2CServerFlow

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

TodoAzureAuthADB2CServerFlow

This sample demonstrates how to use Azure Active Directory B2C to provide a server-side authentication and authorization flow to an Azure Mobile Apps instance with Xamarin.Forms.

For more information about this sample see Integrating Azure Active Directory B2C with Azure Mobile Apps.

Setup

In order to run this sample application an Azure Mobile Apps instance must be created and configured, along with a Azure Active Directory B2C tenant, as follows:

  1. Create an Azure Mobile App instance. For more information, see Consuming an Azure Mobile App.
  2. Enable authentication in the Azure Mobile App instance and the Xamarin.Forms application. For more information, see Authenticating Users with Azure Mobile Apps.
  3. Create an Azure Active Directory B2C tenant. For more information, see Authenticating Users with Azure Active Directory B2C.

Sample Setup

In order to run this sample application the following steps must be carried out:

  1. Update Constants.cs, in the .NET Standard Library project, to include the URL of the Azure Mobile App, and the URL scheme for the Xamarin.Forms app.
  2. In the iOS project, update Info.plist to include the URL scheme.
  3. In the Android project, update AndroidManifest.xml to include the URL scheme.
  4. In the UWP project, update Package.appxmanifest to include the URL scheme.

Author

David Britch