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/remote-rendering/tutorials/unity/security/security.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ Both the "AccountID + AccountKey" and the "URL + SAS Token" are both essentially
34
34
35
35
Azure Remote Rendering can securely access the contents of your Azure Blob Storage with the correct configuration. See [How-to: Link storage accounts](../../../how-tos/create-an-account.md#link-storage-accounts) to configure your Azure Remote Rendering instance with your blob storage accounts.
36
36
37
-
When using a linked blob storage, you'll use slightly different methods for loading models:
37
+
When using a linked blob storage, you use slightly different methods for loading models:
@@ -92,7 +92,7 @@ Let's modify **RemoteRenderingCoordinator** to load a custom model, from a linke
92
92
93
93
Forthemostpart, thiscodeisidenticaltotheoriginal `LoadModel` method, howeverwe've replaced the SAS version of the method calls with the non-SAS versions.
94
94
95
-
Theadditionalinputs `storageAccountName` and `blobName` havealsobeenaddedtothearguments. We'll call this new **LoadModel** method from another method similar to the very first **LoadTestModel** method we created in the first tutorial.
95
+
Theadditionalinputs `storageAccountName` and `blobName` havealsobeenaddedtothearguments. Wecallthisnew**LoadModel**methodfromanothermethodsimilartothefirst**LoadTestModel**methodwecreatedinthefirsttutorial.
***StorageAccountName**:Yourstorageaccountname, thegloballyuniquenameyouchoosefor your storage account. In the quickstart this was *arrtutorialstorage*, your value will be different.
151
+
***StorageAccountName**:Yourstorageaccountname, thegloballyuniquenameyouchoosefor your storage account. In the quickstart this was *arrtutorialstorage*, your value is different.
152
152
* **Blob Container Name**: arroutput, the Blob Storage Container
153
-
* **Model Path**: The combination of the "outputFolderPath" and the "outputAssetFileName" defined in the *arrconfig.json* file. In the quickstart this was "outputFolderPath":"converted/robot", "outputAssetFileName": "robot.arrAsset". Which would result in a Model Path value of "converted/robot/robot.arrAsset", your value will be different.
153
+
* **Model Path**: The combination of the "outputFolderPath" and the "outputAssetFileName" defined in the *arrconfig.json* file. In the quickstart, this was "outputFolderPath":"converted/robot", "outputAssetFileName": "robot.arrAsset". Which would result in a Model Path value of "converted/robot/robot.arrAsset", your value is different.
154
154
155
155
>[!TIP]
156
156
> If you [run the **Conversion.ps1**](../../../quickstarts/convert-model.md#run-the-conversion) script, withoutthe"-UseContainerSas"argument, thescriptwilloutputalloftheabovevaluesfor your instead of the SAS token. 
@@ -169,7 +169,7 @@ We have one more "password", the AccountKey, to remove from the local applicatio
@@ -351,7 +351,7 @@ With the Azure side of things in place, we now need to modify how your code conn
351
351
>[!NOTE]
352
352
>Thiscodeisbynomeanscompleteandisnotreadyforacommercialapplication. Forexample, ataminimumyou'll likely want to add the ability to sign out too. This can be done using the `Task RemoveAsync(IAccount account)` method provided by the client application. This code is only intended for tutorial use, your implementation will be specific to your application.
Since the User Credentials aren't stored on the device (or in this case even entered on the device), their exposure risk is very low. Now the device is using a user-specific, time-limited Access Token to access ARR, which uses access control (IAM) to access the Blob Storage. These two steps have completely removed the "passwords" from the source code and increased security considerably. However, this isn't the most security available, moving the model and session management to a web service will improve security further. Additional security considerations are discussed in the [Commercial Readiness](../commercial-ready/commercial-ready.md) chapter.
370
+
Since the User Credentials aren't stored on the device (or in this case even entered on the device), their exposure risk is low. Now the device is using a user-specific, time-limited Access Token to access ARR, which uses access control (IAM) to access the Blob Storage. These two steps have removed the "passwords" from the source code and increased security considerably. However, this isn't the most security available, moving the model and session management to a web service will improve security further. Additional security considerations are discussed in the [Commercial Readiness](../commercial-ready/commercial-ready.md) chapter.
371
371
372
372
### Testing AAD Auth
373
373
374
-
In the Unity Editor, when AAD Auth is active, you will need to authenticate every time you launch the application. On device, the authentication step will happen the first time and only be required again when the token expires or is invalidated.
374
+
In the Unity Editor, when AAD Auth is active, you'll need to authenticate every time you launch the application. On device, the authentication step happens the first time and only be required again when the token expires or is invalidated.
375
375
376
376
1. Add the **AAD Authentication** component to the **RemoteRenderingCoordinator** GameObject.
377
377
@@ -383,15 +383,15 @@ In the Unity Editor, when AAD Auth is active, you will need to authenticate ever
383
383
1. Fill in your values for the Client ID and the Tenant ID. These values can be found in your App Registration's Overview Page:
384
384
385
385
***Active Directory Application Client ID** is the *Application (client) ID* found in your AAD app registration (see image below).
386
-
***Azure Tenant ID** is the *Directory (tenant) ID* found in your AAD app registration (see image below).
386
+
***Azure Tenant ID** is the *Directory (tenant) ID* found in your AAD app registration (see image below).
387
387
***Azure Remote Rendering Domain** is the same domain you've been using in the **RemoteRenderingCoordinator**'s Remote Rendering Domain.
388
388
***Azure Remote Rendering Account ID** is the same **Account ID** you've been using for **RemoteRenderingCoordinator**.
389
389
***Azure Remote Rendering Account Domain** is the same **Account Domain** you've been using in the **RemoteRenderingCoordinator**.
390
390
391
391
:::image type="content" source="./media/azure-active-directory-app-overview.png" alt-text="Screenshot that highlights the Application (client) ID and Directory (tenant) ID.":::
392
392
393
393
1. Press Play in the Unity Editor and consent to running a session.
394
-
Since the **AAD Authentication** component has a view controller, its automatically hooked up to display a prompt after the session authorization modal panel.
394
+
Since the **AAD Authentication** component has a view controller, it's automatically hooked up to display a prompt after the session authorization modal panel.
395
395
1. Follow the instructions found in the panel to the right of the **AppMenu**.
396
396
You should see something similar to this:
397
397

@@ -402,7 +402,7 @@ After this point, everything in the application should proceed normally. Check t
402
402
403
403
## Build to device
404
404
405
-
If you're building an application using MSAL to device, you'll need to include a file in your project's **Assets** folder. This will help the compiler build the application correctly using the *Microsoft.Identity.Client.dll* included in the **Tutorial Assets**.
405
+
If you're building an application using MSAL to device, you need to include a file in your project's **Assets** folder. This helps the compiler build the application correctly using the *Microsoft.Identity.Client.dll* included in the **Tutorial Assets**.
406
406
407
407
1. Add a new file in **Assets** named **link.xml**
408
408
1. Add the following for to the file:
@@ -423,7 +423,7 @@ Follow the steps found in [Quickstart: Deploy Unity sample to HoloLens - Build t
423
423
424
424
## Next steps
425
425
426
-
The remainder of this tutorial set contains conceptual topics for creating a production-ready application that uses Azure Remote Rendering.
426
+
The remainder of this tutorial set contains conceptual articles for creating a production-ready application that uses Azure Remote Rendering.
0 commit comments