AuthenticationManager.GetACSAppOnlyContext Access Denied #432
Answered
by
jansenbe
patrickblanc
asked this question in
Q&A
-
Hi everyone
Grant-PnPAzureADAppSitePermission -AppId "<my-app-id>" -DisplayName "<my-app-name>" -Site "<my-sharepoint-site-url>" -Permissions Write
PnP.Framework.AuthenticationManager am = new ();
var cc = am.GetACSAppOnlyContext("<my-sharepoint-site-url>", "<my-app-id>", "<my-app-secret>");
cc.Load(cc.Web, w => w.Url);
cc.ExecuteQuery(); But I got :
Thanks for your support. |
Beta Was this translation helpful? Give feedback.
Answered by
jansenbe
Aug 26, 2021
Replies: 1 comment
-
ACS methods...are only for apps created using SharePoint Azure ACS...When using Azure AD apps (preferred over the old ACS) then you need to configure a certificate with your Azure AD app and use certificate based auth. Doing auth using a secret won't work. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
patrickblanc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ACS methods...are only for apps created using SharePoint Azure ACS...When using Azure AD apps (preferred over the old ACS) then you need to configure a certificate with your Azure AD app and use certificate based auth. Doing auth using a secret won't work.