Follow the steps as described here. Steps include:
- Register a redirect URI for your application for iOS in the Azure Portal. It should be in the following format:
msauth.[BUNDLE_ID]://auth
- Navigate to your tenant in the Azure Portal.
- Under "Platform configurations", click "Add a platform".
- Click "iOS / macOS".
- Enter your app's Bundle ID.
- Click "Configure".
- Click "Done"
- Add a keychain group to your project Capabilities called
com.microsoft.adalcache
- Add your application's redirect URI scheme to your
Info.plist
file, which will be in the format of msauth.[BUNDLE_ID] - Add LSApplicationQueriesSchemes to allow making call to Microsoft Authenticator if installed.
- Add the provided code in your AppDelegate.m to handle MSAL callbacks. Make sure you
#import <MSAL/MSAL.h>