You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/active-directory-b2c/enable-authentication-ios-app.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,8 @@ author: kengaderdus
6
6
manager: CelesteDG
7
7
ms.service: active-directory
8
8
ms.workload: identity
9
-
ms.topic: reference
10
-
ms.date: 07/29/2021
9
+
ms.topic: how-to
10
+
ms.date: 03/24/2023
11
11
ms.author: kengaderdus
12
12
ms.subservice: B2C
13
13
ms.custom: "b2c-support"
@@ -25,7 +25,7 @@ Review the prerequisites and integration instructions in [Configure authenticati
25
25
26
26
## Create an iOS Swift app project
27
27
28
-
If you don't already have an iOS Swift application, set up a new project by doing the following:
28
+
If you don't already have an iOS Swift application, set up a new project by doing the following steps:
29
29
30
30
1. Open [Xcode](https://developer.apple.com/xcode/), and then select **File** > **New** > **Project**.
31
31
1. For iOS apps, select **iOS** > **App**, and then select **Next**.
@@ -41,7 +41,7 @@ If you don't already have an iOS Swift application, set up a new project by doin
41
41
42
42
## Step 1: Install the MSAL library
43
43
44
-
1. Use [CocoaPods](https://cocoapods.org/) to install the MSAL library. In the same folder as your project's *.xcodeproj* file, if the *podfile* file doesn't exist, create an empty file called*podfile*. Add the following code to the *podfile* file:
44
+
1. Use [CocoaPods](https://cocoapods.org/) to install the MSAL library. In the same folder as your project's *.xcodeproj* file, if the *podfile* file doesn't exist, create an empty file and name it*podfile*. Add the following code to the *podfile* file:
45
45
46
46
```
47
47
use_frameworks!
@@ -90,7 +90,7 @@ The [sample code](configure-authentication-sample-ios-app.md#step-4-get-the-ios-
90
90
- Contains information about your Azure AD B2C identity provider. The app uses this information to establish a trust relationship with Azure AD B2C.
91
91
- Contains the authentication code to authenticate users, acquire tokens, and validate them.
92
92
93
-
Choose a `UIViewController` where users will authenticate. In your `UIViewController`, merge the code with the [code that's provided in GitHub](https://github.com/Azure-Samples/active-directory-b2c-ios-swift-native-msal/blob/vNext/MSALiOS/ViewController.swift).
93
+
Choose a `UIViewController` where users authenticate. In your `UIViewController`, merge the code with the [code that's provided in GitHub](https://github.com/Azure-Samples/active-directory-b2c-ios-swift-native-msal/blob/vNext/MSALiOS/ViewController.swift).
When users [authenticate interactively](#step-62-start-an-interactive-authorization-request), the app gets an access token in the `acquireToken` closure. For subsequent web API calls, use the acquire token silent (`acquireTokenSilent`) method, as described in this section.
194
194
195
-
The `acquireTokenSilent` method does the following:
195
+
The `acquireTokenSilent` method does the following actions:
196
196
197
197
1. It attempts to fetch an access token with the requested scopes from the token cache. If the token is present and hasn't expired, the token is returned.
198
198
1. If the token isn't present in the token cache or it has expired, the MSAL library attempts to use the refresh token to acquire a new access token.
Copy file name to clipboardExpand all lines: articles/active-directory-b2c/enable-authentication-spa-app.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,8 @@ author: kengaderdus
6
6
manager: CelesteDG
7
7
ms.service: active-directory
8
8
ms.workload: identity
9
-
ms.topic: reference
10
-
ms.date: 06/25/2021
9
+
ms.topic: how-to
10
+
ms.date: 03/24/2023
11
11
ms.author: kengaderdus
12
12
ms.subservice: B2C
13
13
ms.custom: "b2c-support"
@@ -93,7 +93,7 @@ app.listen(port, () => {
93
93
94
94
## Step 4: Create the SPA user interface
95
95
96
-
Add the SAP app `index.html` file. This file implements a user interface that's built with a Bootstrap framework, and it imports script files for configuration, authentication, and web API calls.
96
+
Add the SPA app `index.html` file. This file implements a user interface that's built with a Bootstrap framework, and it imports script files for configuration, authentication, and web API calls.
97
97
98
98
The resources referenced by the *index.html* file are detailed in the following table:
0 commit comments