Skip to content

Commit 313ddd3

Browse files
Tyler WhitneyTyler Whitney
authored andcommitted
acrolinx fixes
1 parent e9fe252 commit 313ddd3

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

articles/active-directory/develop/shared-device-mode.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ The following object model illustrates the type of object you may receive and wh
6161

6262
![public client application inheritance model](media/v2-shared-device-mode/ipublic-client-app-inheritance.png)
6363

64-
You'll need to perform a type check and cast to the appropriate interface when you get your `PublicClientApplication` object. The following code checks for multiple account mode or single account mode, and casts the application object appropriately:
64+
You'll need to do a type check and cast to the appropriate interface when you get your `PublicClientApplication` object. The following code checks for multiple account mode or single account mode, and casts the application object appropriately:
6565

6666
```java
6767
private IPublicClientApplication mApplication;
@@ -88,15 +88,15 @@ The following differences apply depending on whether your app is running on a sh
8888

8989
## Why you may want to only support single-account mode
9090

91-
If you are writing an app that will only be used for firstline workers using a shared device, we recommend that you write your application to only support single-account mode. This includes most applications that are task focused such as medical records apps, invoice apps, and most line-of-business apps. Only supporting single-account mode simplifies development because you won't need to implement the additional features that are part of multiple-account apps.
91+
If you're writing an app that will only be used for firstline workers using a shared device, we recommend that you write your application to only support single-account mode. This includes most applications that are task focused such as medical records apps, invoice apps, and most line-of-business apps. Only supporting single-account mode simplifies development because you won't need to implement the additional features that are part of multiple-account apps.
9292

9393
## What happens when the device mode changes
9494

9595
If your application is running in multiple-account mode, and an administrator puts the device in shared device mode, all of the accounts on the device are cleared from the application and the application transitions to single-account mode.
9696

9797
## Shared device sign-out and the overall app lifecycle
9898

99-
When a user signs out, you will need to take action to protect the privacy and data of the user. For example, if you're building a medical records app you'll want to make sure that when the user signs out previously displayed patient records are cleared. Your application must be prepared for this and check every time it enters the foreground.
99+
When a user signs out, you'll need to take action to protect the privacy and data of the user. For example, if you're building a medical records app you'll want to make sure that when the user signs out previously displayed patient records are cleared. Your application must be prepared for this and check every time it enters the foreground.
100100

101101
When your app uses MSAL to sign out the user in an app running on device that is in shared mode, the signed-in account and cached tokens are removed from both the app and the device.
102102

@@ -106,4 +106,4 @@ The following diagram shows the overall app lifecycle and common events that may
106106

107107
## Next steps
108108

109-
See the [shared device sign-out sample](https://github.com/brandwe/GlobalSignoutSample) for example shared device mode app code that shows how to write a firstline worker app that runs on a shared mode Android device.
109+
See the [shared device sign-out sample](https://github.com/brandwe/GlobalSignoutSample) for shared device mode app example code that shows how to write a firstline worker app that runs on a shared mode Android device.

articles/active-directory/develop/tutorial-v2-shared-device-mode.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ This guide provides developer guidance to implement shared-device mode in an And
3131

3232
### Download the sample
3333

34-
Clone the [sample application](https://github.com/Azure-Samples/ms-identity-android-java/) from Github. The sample has the capability to work in [single or multi account mode](https://docs.microsoft.com/azure/active-directory/develop/single-multi-account).
34+
Clone the [sample application](https://github.com/Azure-Samples/ms-identity-android-java/) from GitHub. The sample has the capability to work in [single or multi account mode](https://docs.microsoft.com/azure/active-directory/develop/single-multi-account).
3535

3636
### Add the MSAL SDK to your local Maven repository
3737

38-
If you are not using the sample app, add the MSAL library as a dependency in your build.gradle file, like so:
38+
If you're not using the sample app, add the MSAL library as a dependency in your build.gradle file, like so:
3939

4040
```gradle
4141
dependencies{
@@ -49,7 +49,7 @@ Refer to the [configuration documentation](https://docs.microsoft.com/azure/acti
4949

5050
Set `"shared_device_mode_supported"` to `true` in your MSAL configuration file.
5151

52-
You may not be planning to support multiple-account mode. That could be if you are not using a shared device, and the user can sign into the app with more than one account at the same time. If so, set `"account_mode"` to `"SINGLE"`. This guarantees that your app will always get `ISingleAccountPublicClientApplication`, and significantly simplifies your MSAL integration. The default value of `"account_mode"` is `"MULTIPLE"`, so it is important to change this value in the config file if you are using `"single account"` mode.
52+
You may not be planning to support multiple-account mode. That could be if you're not using a shared device, and the user can sign into the app with more than one account at the same time. If so, set `"account_mode"` to `"SINGLE"`. This guarantees that your app will always get `ISingleAccountPublicClientApplication`, and significantly simplifies your MSAL integration. The default value of `"account_mode"` is `"MULTIPLE"`, so it is important to change this value in the config file if you're using `"single account"` mode.
5353

5454
Here's an example of the auth_config.json file included in the **app**>**main**>**res**>**raw** directory of the sample app:
5555

@@ -75,7 +75,7 @@ Here's an example of the auth_config.json file included in the **app**>**main**>
7575

7676
### Detect shared-device mode
7777

78-
Shared-device mode allows you to configure Android devices to be shared by multiple employees, while providing Microsoft Identity backed management of the device. Employees can sign-in to their devices and access customer information quickly. When they are finished with their shift or task, they will be able to sign-out of all apps on the shared device with a single click and the device will be immediately ready for the next employee to use.
78+
Shared-device mode allows you to configure Android devices to be shared by multiple employees, while providing Microsoft Identity backed management of the device. Employees can sign in to their devices and access customer information quickly. When they are finished with their shift or task, they will be able to sign-out of all apps on the shared device with a single click and the device will be immediately ready for the next employee to use.
7979

8080
Use `isSharedDevice()` to determine if an app is running on a device that is in shared-device mode. Your app could use this flag to determine if it should modify UX accordingly.
8181

@@ -110,7 +110,7 @@ PublicClientApplication.create(this.getApplicationCOntext(),
110110

111111
### Detect single vs. multiple account mode
112112

113-
If you are writing an app that will only be used for firstline workers on a shared device, we recommend you write your app to only support single-account mode. This includes most applications that are task focused such as medical records apps, invoice apps, and most line of business apps. This will simplify your development as many features of the SDK won’t need to be accommodated.
113+
If you're writing an app that will only be used for firstline workers on a shared device, we recommend you write your app to only support single-account mode. This includes most applications that are task focused such as medical records apps, invoice apps, and most line-of-business apps. This will simplify your development as many features of the SDK won’t need to be accommodated.
114114
115115
If your app supports multiple accounts as well as shared device mode, you must perform a type check and cast to the appropriate interface as shown below.
116116
@@ -206,18 +206,18 @@ First, register your application within your organizational tenant. Then provide
206206
For information on how to do this, refer to [Register your application](https://docs.microsoft.com/azure/active-directory/develop/tutorial-v2-android#register-your-application).
207207
208208
> [!NOTE]
209-
> When you register your app, please use the QuickStart guide on the left-hand side and then select **Android**. This will lead you to a page where you will be asked to provide the **Package Name** and **Signature Hash** for your app. These are very important to ensure your app configuration will work. You will then receive a configuration object that you can use for your app that you will cut and paste into your auth_config.json file.
209+
> When you register your app, please use the quickstart guide on the left-hand side and then select **Android**. This will lead you to a page where you'll be asked to provide the **Package Name** and **Signature Hash** for your app. These are very important to ensure your app configuration will work. You'll then receive a configuration object that you can use for your app that you'll cut and paste into your auth_config.json file.
210210

211211
![App registration screen](media/tutorial-v2-shared-device-mode/register-app.png)
212212
You should select **Make this change for me** and then provide the values the QuickStart asks for in the Azure portal. When that's done, we will generate all the configuration files you need.
213213

214214
![App config info screen](media/tutorial-v2-shared-device-mode/config-info.png)
215215

216-
## Setup a tenant
216+
## Set up a tenant
217217

218218
For testing purposes, set up the following in your tenant: at least two employees, one Cloud Device Administrator, and one Global Administrator. In the Azure portal, set the Cloud Device Administrator by modifying Organizational Roles. In the Azure portal, access your Organizational Roles by selecting **Azure Active Directory** > **Roles and Administrators** > **Cloud Device Administrator**. Add the users that can put a device into shared mode.
219219

220-
## Setup an Android device in shared mode
220+
## Set up an Android device in shared mode
221221

222222
### Download the Authenticator App
223223

@@ -233,7 +233,7 @@ Launch the Authenticator App and navigate to main account page. Once you see the
233233

234234
![Authenticator add account screen](media/tutorial-v2-shared-device-mode/authenticator-settings.png)
235235

236-
When you click this button, you will be asked to authorize access to device contacts. This is due to Android’s account integration on the device. Choose **allow**.
236+
When you click this button, you'll be asked to authorize access to device contacts. This is due to Android’s account integration on the device. Choose **allow**.
237237

238238
![Authenticator add account screen](media/tutorial-v2-shared-device-mode/authenticator-allow-screen.png)
239239

@@ -251,11 +251,11 @@ The device is now in shared mode.
251251

252252
## View the shared device in the Azure portal
253253

254-
Once you’ve put a device in shared-mode, it becomes known to your organization and is tracked in your organizational tenant. You can view your shared devices by looking at the **Join Type** in the Azure Active Directory blade of your Azure Portal.
254+
Once you’ve put a device in shared-mode, it becomes known to your organization and is tracked in your organizational tenant. You can view your shared devices by looking at the **Join Type** in the Azure Active Directory blade of your Azure portal.
255255

256256
## Running the sample app
257257

258-
The Sample Application is a simple app that will call the Graph API of your organization. Note that on first run you’ll be prompted to consent as the application is new to your employee account.
258+
The Sample Application is a simple app that will call the Graph API of your organization. n first run you’ll be prompted to consent as the application is new to your employee account.
259259

260260
![App config info screen](media/tutorial-v2-shared-device-mode/run-app-permissions-requested.png)
261261

0 commit comments

Comments
 (0)