HixField
HixField

Reputation: 3796

Firebase Authentication with Azure AD B2C

I have a native iOS application developed in xCode/Swift that integrates the Firebase Auth SDK for registering and login of new users. The Firebase Auth system should be linked to an Azure Active Directory B2C so that:

enter image description here

After doing research I found that Firebase supports "custom tokens" (refer to https://firebase.google.com/docs/auth/admin/create-custom-tokens). Could this offer a solution? I do not see anything about creating new users, only authentication...

Upvotes: 5

Views: 3484

Answers (1)

Maxime Gélinas
Maxime Gélinas

Reputation: 2330

Me and my team developed a solution for this exact scenario around custom tokens. Our implementation run since a couple of months on Azure and we had no problem at all yet.

Here is the flow:

enter image description here

Notes:

  1. Azure B2C can be replace by any STS.
  2. The Azure function can be replace by any backend process.

Also, the good thing is that you don't have to maintain users in Firebase since you don't create Firebase users and only use a custom token so no need to delete users.

Upvotes: 9

Related Questions