I set up the B2C service in Azure AD and enabled Google as an authentication provider only to find that Google denies authentication requests through the built-in web view. Then I found AppAuth, but I have a lot of difficulties in working with a sample iOS application.
The problem I am facing is related to uri redirection. Using AAD when redirecting uri for native applications results in an error in Safari Mobile. I tried to add a custom redirect urid that would be redirected to my iOS application, but could not, because it did not pass the verification in the configuration of the azure advertisement because it was not in the https URL scheme.
Can I use AppAuth with Azure AD B2C? Is there a way to configure this correctly or is a change required on the MS side?
EDIT
I have setup and running Azure AD B2C, including a Google account. This works as expected in a web browser, however, when I try to login to Google from iOS using the built-in webview, I get disallowed_useragent . Studying this, I came across the AppAuth library, which, in my opinion, is a safe choice solution, except that it does not work with B2C due to redirection problems, or at least I did not find a way to do this work.
I expect that I will need to provide a B2C redirect URL that is unique to my iOS application so that the SFSafariViewController can redirect back to my application. Using a web configuration in B2C seems to be the right approach, but it requires using https instead of a user scheme.
Is there a way to configure B2C for a custom redirect URI?
source share