Skip to content

Commit 9df5499

Browse files
Tyler WhitneyTyler Whitney
authored andcommitted
add steps for bundle id
1 parent f23196a commit 9df5499

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

articles/active-directory/develop/quickstart-v2-ios.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.devlang: na
1313
ms.topic: quickstart
1414
ms.tgt_pltfrm: na
1515
ms.workload: identity
16-
ms.date: 09/16/2019
16+
ms.date: 09/24/2019
1717
ms.author: twhitney
1818
ms.reviewer: jmprieur, saeeda
1919
ms.custom: aaddev, identityplatformtop40
@@ -41,7 +41,7 @@ This quickstart is applicable to both iOS and macOS apps. Some steps are needed
4141
> * [Express] [Option 1: Register and auto configure your app and then download your code sample](#option-1-register-and-auto-configure-your-app-and-then-download-your-code-sample)
4242
> * [Manual] [Option 2: Register and manually configure your application and code sample](#option-2-register-and-manually-configure-your-application-and-code-sample)
4343
>
44-
> ### Option 1: Register and auto configure your app and then download your code sample
44+
> ### Option 1: Register and auto configure your app and then download the code sample
4545
> #### Step 1: Register your application
4646
> To register your app,
4747
> 1. Go to the new [Azure portal - App registrations](https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/applicationsListBlade/quickStartType/IosQuickstartPage/sourceType/docs) pane.
@@ -58,15 +58,15 @@ This quickstart is applicable to both iOS and macOS apps. Some steps are needed
5858
> 1. When the **Register an application** page appears, enter your application's registration information:
5959
> - In the **Name** section, enter a meaningful application name that will be displayed to users of the app when they sign in or consent to your app.
6060
> - Skip other configurations on this page.
61-
> - Hit the `Register` button.
61+
> - Select `Register`.
6262
> 1. In the **Manage** section, select `Authentication` > `Add Platform` > `iOS`.
63-
> - Enter the ***Bundle Identifier*** for your application.
63+
> - Enter the ***Bundle Identifier*** for your application. The bundle identifier is just a unique string that uniquely identifies your application, for example `com.<yourname>.identitysample.MSALMacOS`. Make a note of the value you use.
6464
> - Note that the iOS configuration is also applicable to macOS applications.
65-
> 1. Select `Configure` and save the ***MSAL Configuration*** details for later.
65+
> 1. Select `Configure` and save the ***MSAL Configuration*** details for later in this quickstart.
6666
> [!div renderon="portal" class="sxs-lookup"]
6767
>
6868
> #### Step 1: Configure your application
69-
> For the code sample for this quickstart to work, you need to add a redirect URI compatible with the Auth broker.
69+
> For the code sample for this quickstart to work, you need to add a redirect URI compatible with the Auth broker.
7070
> > [!div renderon="portal" id="makechanges" class="nextstepaction"]
7171
> > [Make this change for me]()
7272
>
@@ -80,7 +80,7 @@ This quickstart is applicable to both iOS and macOS apps. Some steps are needed
8080

8181
#### Step 3: Install dependencies
8282

83-
In a terminal window, navigate to the folder with the downloaded code sample and run `pod install` to install the latest MSAL library
83+
In a terminal window, navigate to the folder with the downloaded code sample and run `pod install` to install the latest MSAL library.
8484

8585
#### Step 4: Configure your project
8686

@@ -89,13 +89,14 @@ In a terminal window, navigate to the folder with the downloaded code sample and
8989
9090
> [!div renderon="portal" class="sxs-lookup"]
9191
> 1. Extract the zip file and open the project in XCode.
92-
> 1. Edit **ViewController.swift** and replace the line starting with 'let kClientID' with the following code snippet:
92+
> 1. Edit **ViewController.swift** and replace the line starting with 'let kClientID' with the following code snippet. Remember to update the value for `kClientID` and `kAuthority` with the client ID and tenant ID that you saved when you registered your app in the portal earlier in the quickstart:
9393
> ```swift
9494
> let kClientID = "Enter_the_Application_Id_here"
9595
> let kAuthority = "https://login.microsoftonline.com/Enter_the_Tenant_Info_Here"
9696
> ```
97+
> 1. Open the project settings. In the **Identity** section, enter the **Bundle Identifier** that you entered into the portal.
9798
> 1. For iOS only, right-click **Info.plist** and select **Open As** > **Source Code**.
98-
> 1. For iOS only, under the dict root node, replace with your ***Bundle Id***:
99+
> 1. For iOS only, under the dict root node, replace `Enter_the_bundle_Id_Here`with the ***Bundle Id*** that you entered in the portal.
99100
>
100101
> ```xml
101102
> <key>CFBundleURLTypes</key>
@@ -107,7 +108,6 @@ In a terminal window, navigate to the folder with the downloaded code sample and
107108
> </array>
108109
> </dict>
109110
> </array>
110-
>
111111
> ```
112112
> 1. Build & run the app!
113113
> [!div class="sxs-lookup" renderon="portal"]
@@ -116,34 +116,34 @@ In a terminal window, navigate to the folder with the downloaded code sample and
116116
> [!div renderon="docs"]
117117
>
118118
> 1. Extract the zip file and open the project in XCode.
119-
> 1. Edit **ViewController.swift** and replace the line starting with 'let kClientID' with the following code snippet:
120-
>
119+
> 1. Edit **ViewController.swift** and replace the line starting with 'let kClientID' with the following code snippet. Remember to update the value for `kClientID` and `kAuthority` with the clientID and tenant ID that you saved when you registered your app in the portal earlier in this quickstart:
121120
> ```swift
122-
> let kClientID = "<ENTER_YOUR_APPLICATION/CLIENT_ID>"
123-
>
121+
> let kClientID = "Enter_the_Application_Id_here"
122+
> let kAuthority = "https://login.microsoftonline.com/Enter_the_Tenant_Info_Here"
124123
> ```
124+
> 1. Open the project settings. In the **Identity** section, enter the **Bundle Identifier** that you entered into the portal.
125125
> 1. For iOS only, right-click **Info.plist** and select **Open As** > **Source Code**.
126-
> 1. For iOS only, under the dict root node, replace with your ***Bundle Id***:
126+
> 1. For iOS only, under the dict root node, replace `Enter_the_bundle_Id_Here`with the ***Bundle Id*** that you used in the portal.
127127
>
128128
> ```xml
129129
> <key>CFBundleURLTypes</key>
130130
> <array>
131131
> <dict>
132132
> <key>CFBundleURLSchemes</key>
133133
> <array>
134-
> <string>msauth.<ENTER_YOUR_BUNDLE_ID></string>
134+
> <string>msauth.Enter_the_Bundle_Id_Here</string>
135135
> </array>
136136
> </dict>
137137
> </array>
138-
>
138+
>
139139
> ```
140140
> 1. Build & run the app!
141141
142142
## More Information
143143
144144
Read these sections to learn more about this quickstart.
145145
146-
### Getting MSAL
146+
### Get MSAL
147147
148148
MSAL ([MSAL.framework](https://github.com/AzureAD/microsoft-authentication-library-for-objc)) is the library used to sign in users and request tokens used to access an API protected by Microsoft identity platform. You can add MSAL to your application using the following process:
149149
@@ -166,7 +166,7 @@ Run CocoaPods installation command:
166166
167167
```pod install```
168168
169-
### MSAL initialization
169+
### Initialize MSAL
170170
171171
You can add the reference for MSAL by adding the following code:
172172
@@ -233,11 +233,11 @@ Finally, your app must has an `LSApplicationQueriesSchemes` entry in your ***Inf
233233
</array>
234234
```
235235
236-
### Sign in users & Request tokens
236+
### Sign in users & request tokens
237237
238238
MSAL has two methods used to acquire tokens: `acquireToken` and `acquireTokenSilent`.
239239
240-
#### acquireToken: Getting a token interactively
240+
#### acquireToken: Get a token interactively
241241
242242
Some situations require users to interact with Microsoft identity platform. In these cases, the end user may be required to select their account, enter their credentials, or consent to your app's permissions. For example,
243243
@@ -255,7 +255,7 @@ self.applicationContext!.acquireToken(with: parameters) { (result, error) in /*
255255
> |---------|---------|
256256
> | `scopes` | Contains the scopes being requested (that is, `[ "user.read" ]` for Microsoft Graph or `[ "<Application ID URL>/scope" ]` for custom Web APIs (`api://<Application ID>/access_as_user`) |
257257
258-
#### acquireTokenSilent: Getting an access token silently
258+
#### acquireTokenSilent: Get an access token silently
259259
260260
Apps shouldn't require their users to sign in every time they request a token. If the user has already signed in, this method allows apps to request tokens silently.
261261
@@ -275,7 +275,7 @@ self.applicationContext!.acquireTokenSilent(with: silentParams) { (result, error
275275
276276
Try out the iOS tutorial for a complete step-by-step guide on building applications, including a complete explanation of this quickstart.
277277
278-
### Learn the steps to create the application used in this quickstart
278+
### Learn how to create the application used in this quickstart
279279
280280
> [!div class="nextstepaction"]
281281
> [Call Graph API iOS tutorial](https://docs.microsoft.com/azure/active-directory/develop/guidedsetups/active-directory-ios)

0 commit comments

Comments
 (0)