pnpframework icon indicating copy to clipboard operation
pnpframework copied to clipboard

403 Forbidden Request .GetACSAppOnlyContext(site.OriginalString, appID, clientSecret)

Open saishan27 opened this issue 3 years ago • 1 comments

Getting 403 Forbidden request while using ClientContext created using above AuthenticationManager.GetACSAppOnlyContext(site.OriginalString, appID, clientSecret). need a way to connect to sharepoint using app registration client id and client secret. No proper documentation could be found for the same.

https://stackoverflow.com/questions/71079159/getacsapponlycontextsiteurl-clientid-clientsecret-return-403-forbidden-reque

saishan27 avatar Feb 11 '22 11:02 saishan27

You might has to check for DisableCustomAppAuthentication. You can use https://pnp.github.io/powershell/cmdlets/Set-PnPTenant.html to set these setting. Please be aware that change is not immediate active - according to others after 15min in average you can test again.

czullu avatar Feb 16 '22 16:02 czullu