Skip to content

Commit 8ebef25

Browse files
Update SPO AAD App / ACS App-Only articles with PnP Framework references (SharePoint#8794)
* Updating SharePoint Online AAD App / ACS App-Only granting process with PnP Framework, removing references to PnP Sites Core * Updating code sample to latest console app template
1 parent a707a40 commit 8ebef25

File tree

4 files changed

+70
-69
lines changed

4 files changed

+70
-69
lines changed

docs/solution-guidance/security-apponly-azureacs.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Granting access using SharePoint App-Only
33
description: Granting access using SharePoint App-Only
4-
ms.date: 12/27/2022
4+
ms.date: 02/26/2022
55
ms.prod: sharepoint
66
author: vesajuvonen
77
ms.author: vesaj
@@ -14,7 +14,7 @@ ms.localizationpriority: medium
1414
SharePoint App-Only is the older, but still very relevant, model of setting up app-principals. This model works for both SharePoint Online and SharePoint 2013/2016/2019 on-premises and is ideal to prepare your applications for migration from SharePoint on-premises to SharePoint Online. Below steps show how to setup an app principal with tenant full control permissions, but obviously you could also grant just read permissions using this approach.
1515

1616
> [!IMPORTANT]
17-
> Azure Access Control (ACS), a service of Azure Active Directory (Azure AD), has been retired on November 7, 2018. This retirement does not impact the SharePoint Add-in model, which uses the `https://accounts.accesscontrol.windows.net` hostname (which is not impacted by this retirement). For more information, see [Impact of Azure Access Control retirement for SharePoint Add-ins](https://devblogs.microsoft.com/microsoft365dev/impact-of-azure-access-control-deprecation-for-sharepoint-add-ins/). For new tenants, apps using an ACS app-only access token is disabled by default. We recommend using the Azure AD app-only model which is modern and more secure. But you can change the behavior by running set-spotenant -DisableCustomAppAuthentication $false' (needs the latest SharePoint admin PowerShell).
17+
> Azure Access Control (ACS), a service of Azure Active Directory (Azure AD), has been retired on November 7, 2018. This retirement does not impact the SharePoint Add-in model, which uses the `https://accounts.accesscontrol.windows.net` hostname (which is not impacted by this retirement). For more information, see [Impact of Azure Access Control retirement for SharePoint Add-ins](https://devblogs.microsoft.com/microsoft365dev/impact-of-azure-access-control-deprecation-for-sharepoint-add-ins/). For new tenants, apps using an ACS app-only access token is disabled by default. We recommend using the Azure AD app-only model which is modern and more secure. But you can change the behavior by running 'set-spotenant -DisableCustomAppAuthentication $false' (needs the latest SharePoint admin PowerShell).
1818
1919
## Setting up an app-only principal with tenant permissions
2020

@@ -48,7 +48,7 @@ With the preparation work done let's continue to the next chapter showing how yo
4848

4949
## Using this principal with PnP PowerShell
5050

51-
If you want to utilize the generated app-only registration with [PnP PowerShell](https://aka.ms/pnp-powershell), you can do so by connecting to your SharePoint On-Premises or Online environment using:
51+
If you want to utilize the generated app-only registration with [PnP PowerShell](https://aka.ms/pnp/powershell), you can do so by connecting to your SharePoint On-Premises or Online environment using:
5252

5353
```powershell
5454
Connect-PnPOnline -Url https://contoso.sharepoint.com/sites/demo -ClientId [Your Client ID] -ClientSecret "[Your Client Secret]"
@@ -58,7 +58,7 @@ Connect-PnPOnline -Url https://contoso.sharepoint.com/sites/demo -ClientId [Your
5858

5959
## Using this principal in your application using the PnP Framework library
6060

61-
In a first step, you add the PnP Framework library nuget package: https://www.nuget.org/packages/PnP.Framework. Once thats done you can use below code construct:
61+
In a first step, you add the PnP Framework library nuget package: https://www.nuget.org/packages/PnP.Framework. Once that's done you can use below code construct:
6262

6363
```csharp
6464
string siteUrl = "https://contoso.sharepoint.com/sites/demo";

0 commit comments

Comments
 (0)