Skip to content

Commit 27e9196

Browse files
authored
Merge pull request #184328 from pamistel/pamistel_authenticationFix
Moved warning banner up
2 parents 5c62f34 + 65cc6dc commit 27e9196

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/spatial-anchors/concepts/authentication.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ ms.custom: devx-track-csharp, subject-rbac-steps
1515

1616
In this article, you'll learn the various ways you can authenticate to Azure Spatial Anchors from your app or web service. You'll also learn about the ways you can use Azure role-based access control (Azure RBAC) in Azure Active Directory (Azure AD) to control access to your Spatial Anchors accounts.
1717

18+
> [!WARNING]
19+
> We recommend that you use account keys for quick onboarding, but only during development/prototyping. We don't recommend that you ship your application to production with an embedded account key in it. Instead, use the user-based or service-based Azure AD authentication approaches described next.
20+
1821
## Overview
1922

2023
![Diagram that shows an overview of authentication to Azure Spatial Anchors.](./media/spatial-anchors-authentication-overview.png)
@@ -82,9 +85,6 @@ configuration.AccountKey(LR"(MyAccountKey)");
8285

8386
After you set that property, the SDK will handle the exchange of the account key for an access token and the necessary caching of tokens for your app.
8487

85-
> [!WARNING]
86-
> We recommend that you use account keys for quick onboarding, but only during development/prototyping. We don't recommend that you ship your application to production with an embedded account key in it. Instead, use the user-based or service-based Azure AD authentication approaches described next.
87-
8888
## Azure AD user authentication
8989

9090
For applications that target Azure Active Directory users, we recommend that you use an Azure AD token for the user. You can obtain this token by using the [MSAL](../../active-directory/develop/msal-overview.md). Follow the steps in the [quickstart on registering an app](../../active-directory/develop/quickstart-register-app.md), which include:

0 commit comments

Comments
 (0)