Hey,
we are currently trying to authenticate our app to SharePoint using an app registration with a certificate as a secret. In the OAuth 2.0 Codeunit in BC, there are multiple procedures to do so using a certifcate as SecretText and a CertificatePassword as SecretText:
But whatever combination of certificate and password (base64 encoded, .pfx/.p12 format etc.) we try, we dont get a valid access token. The use case is that we want to use the Base Apps SharePoint Integration to get lists or creater items and during initialization you need to authenticate with either a client secret or certificate. In our case we want to do it with a certificate.
Using postman and creating a client assertion with the certificate of the app registration everything works as expected. Does anyone have a clue on how to use a certificate in Business Central?
Kind Regards