When trying to use the adal-node library from here for the Server to Server via Client Credentials, the code works for the discovery endpoint etc., but when trying to use it with Office 365, I get the "Unsupported app only token" error.
I'm wondering if I need to load a certificate into Azure AD, but not sure how to then use that from my node script.
Any pointers in the right direction or thoughts on whether or not that is the issue greatly appreciated.
Many thanks in advance. D.