Configure Xcode project settingsĪdd a new keychain group to your project Signing & Capabilities. This value is part of the MSAL Configuration data that you saved during the step at the beginning of this tutorial to register the application in the Azure portal. The only value you modify above is the value assigned to kClientIDto be your Application ID. Var webViewParameters : MSALWebviewParameters? Var applicationContext : MSALPublicClientApplication? Let kScopes: = // request permission to read the profile of the signed-in user Let kAuthority = "" // this authority allows a personal Microsoft account and a work or school account in any organization's Azure AD tenant to sign in Let kGraphEndpoint = "" // the Microsoft Graph endpoint Let kClientID = "Your_Application_Id_Here" Macos diff two directories graphically update#Then Add the following code to ViewController.swift prior to viewDidLoad(): // Update the below to your client ID you received in the portal. Macos diff two directories graphically registration#Next, we'll add your app registration to your code.įirst, add the following import statement to the top of the ViewController.swift, as well as AppDelegate.swift or SceneDelegate.swift files: import MSAL You can also use Git Submodule, or check out the latest release to use as a framework in your application. Macos diff two directories graphically install#If you're using Carthage, install MSAL by adding it to your Cartfile: github "AzureAD/microsoft-authentication-library-for-objc" "master"įrom a terminal window, in the same directory as the updated Cartfile, run the following command to have Carthage update the dependencies in your project. xcworkspace to reload the project in Xcode. In a terminal window, navigate to the folder that contains the podfile you created and run pod install to install the MSAL library.Ĭlose Xcode and open. Add the following to podfile: use_frameworks! If you're using CocoaPods, install MSAL by first creating an empty file called podfile in the same folder as your project's.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |