CSOM - ApplyProvisioningTemplate - 403 Forbidden Error and Attempted to perform an unauthorized operation exception
I'm using PnPFramwork in my project to provision a O365 group enabled team site and then I want to apply a PnP template on top of the site.
when I execute ApplyProvisioningTemplate on web with PnP Template to Create SharePoint List, Navigation links, I'm getting the below error:
The remote server returned an error: (403) Forbidden.

when I execute ApplyProvisioningTemplate on web with PnP Template to Client Side Pages with webpart, I'm getting the below exceptions:
Attempted to perform an unauthorized operation.

I haven't seen these issues on using SharePointPnPCoreOnline but it occurs with PnPFramework.
Connected the team site using SharePointOnlineCredentials with ServiceAccount and Secure Password. ServiceAccount have Owner access and Site collection Administrators permission to the site.

Looking on the mentioned code, it seems that the code has not been changed to use the app id model as explained on the migration guidance - https://github.com/pnp/pnpframework/blob/dev/docs/MigratingFromPnPSitesCore.md
With the PnP Framework you are required to use registered app id to align with the security principles and recommendations from security teams.
This link is broken. Where is the guide now? Are there any PnP Framework samples out there? Thanks