Service Principal / Application ID in Sharepoint Connector

Hi,
I have set up a Sharepoint connector that uses a personal token to authenticate.
Now I would like to switch to using a service principal (application) and its associated secret. I have set up the application and secret in Azure AD and the application has been given access to the relevant sharepoint site. However, if I select Authorization = Basic Authentication in the connector, and then input application ID as username and secret as password, and click Test, I receive an error (The 'username' argument is invalid).
How can I use service principal ID and secret to connect to Microsoft sharepoint?
Thanks in advance.

Hi!

Currently, Service Principal authorization is not supported; only MFA is available for SharePoint Online.