nayanAubie / msal_auth

A new Flutter plugin for Azure AD authentication.
MIT License
8 stars 10 forks source link

Add support for authenticating against Azure AD B2C tenants on iOS #10

Closed stevedayuk closed 4 months ago

stevedayuk commented 5 months ago

The code changes in this pull request add support for authenticating against Azure AD B2C tenants on iOS. Re Issue #9

This is done by introducting a new TenantType enum with values of "EntraIdAndMicrosoftAccount" for authenticating against Entra ID tenants and "AzureADB2C" for authenticating against Azure AD B2C tenants.

Your existing code should fundementally be unchanged - the only additions are for passing this new tenant type value from the Flutter app into the native Swift code, along with changes to the getApplication() function in MsalAuthPlugin.swift to configure the correct authority based on the passed tenant type.

The readme has also been updated with additional setup instructions regarding these changes.

The Android code is unchanged.