Skip to content

Commit b0980ce

Browse files
authored
Merge pull request #6942 from MicrosoftDocs/Erikre-patch-7
Update data-warehouse-app-only-auth.md
2 parents 49fb1b7 + d88d273 commit b0980ce

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

memdocs/intune/developer/data-warehouse-app-only-auth.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ keywords:
88
author: Erikre
99
ms.author: erikre
1010
manager: dougeby
11-
ms.date: 01/10/2022
11+
ms.date: 03/03/2022
1212
ms.topic: reference
1313
ms.service: microsoft-intune
1414
ms.subservice: developer
@@ -102,9 +102,9 @@ Using Visual Studio, create a Console App (.NET Framework) project that supports
102102
var applicationId = ConfigurationManager.AppSettings["appId"].ToString();
103103
SecureString applicationSecret = ConvertToSecureStr(ConfigurationManager.AppSettings["appKey"].ToString()); // Load as SecureString from configuration file or secret store (i.e. Azure KeyVault)
104104
var tenantDomain = ConfigurationManager.AppSettings["tenantDomain"].ToString();
105-
var adalContext = new AuthenticationContext($"https://login.windows.net/" + tenantDomain + "/oauth2/token");
105+
var msalContext = new AuthenticationContext($"https://login.windows.net/" + tenantDomain + "/oauth2/token");
106106

107-
AuthenticationResult authResult = adalContext.AcquireTokenAsync(
107+
AuthenticationResult authResult = msalContext.AcquireTokenAsync(
108108
resource: "https://api.manage.microsoft.com/",
109109
clientCredential: new ClientCredential(
110110
applicationId,
@@ -166,4 +166,4 @@ Using Visual Studio, create a Console App (.NET Framework) project that supports
166166
> To see additional implementation code, see [Intune-Data-Warehouse code example](https://github.com/Microsoft/Intune-Data-Warehouse/tree/master/Samples/CSharp ).
167167
168168
## Next Steps
169-
Learn more about Azure Key Vault by reviewing [What is Azure Key Vault?](/azure/key-vault/key-vault-whatis)
169+
Learn more about Azure Key Vault by reviewing [What is Azure Key Vault?](/azure/key-vault/key-vault-whatis)

0 commit comments

Comments
 (0)