I am trying to build an application that gets terms from a term store in SharePoint Online, using App only permissions. For that, I was hoping to leverage the PnP Framework SDK.
I know for a fact that, currently, the Graph API does not support term store commands using app only permissions (for either v1 or beta).
I can see here how to obtain a ClientContext using app only permissions (client_id and client_secret). But this does not give me access to the term store.
Here, a PnPContext is used to interact with the term store, but the configuration options don't seem to have an option to provide the tenant_id, client_id, and client_secret.
Is there any way to do this?
PS: I only need read access to the term store.

After further research, I was able to find two solution for this, documented below.
Some useful links:
SharePoint Online Retrieve term store data including Labels using .Net managed object model
Using .NET Standard CSOM and MSAL.NET for App-Only auth in SharePoint Online
CSOM for .NET Standard with SharePoint App-only principal
Using CSOM for .NET Standard instead of CSOM for .NET Framework (implementation of token cache)