AzureAD / microsoft-authentication-library-for-objc

Microsoft Authentication Library (MSAL) for iOS and macOS
http://aka.ms/aadv2
MIT License
259 stars 141 forks source link

App Store Upload Error Due to Disallowed URL Scheme #2183

Closed zohaib304 closed 3 months ago

zohaib304 commented 3 months ago

When attempting to upload my app to the App Store, I encountered the following validation error:

error: The following URL scheme found in your app are disallowed: [msauth]

Relevant Code

The issue seems to be related to the CFBundleURLTypes and LSApplicationQueriesSchemes entries in the Info.plist file. Here is the relevant portion of my Info.plist:

`CFBundleURLTypes

CFBundleIdentifier CFBundleTypeRole Editor CFBundleURLName CFBundleURLSchemes msauth CFBundleVersion $(FLUTTER_BUILD_NUMBER) LSApplicationQueriesSchemes msauth msauthv2 msauthv3

`

Any assistance or insights into resolving this issue would be greatly appreciated. Thank you!

zohaib304 commented 3 months ago

In under CFBundleURLSchemes key you have to add msauth.[bundleId]. And make sure you have added same bundle id on Azure AD and add as a IOS and MacOS platform on AD then you will get the config. keys to do login on IOS.