Мой URL-адрес аутентификации:
https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id={{app_client_id}}&scope=User.Read Sites.Read.All files.read files.read.all files.readwrite files.readwrite.all offline_access&response_type=code&redirect_uri=https://yourdomain/sharepoint-response
Используя этот URL-адрес, я получаю этот код ответа
POST : https://login.microsoftonline.com/common/oauth2/token body : "client_id="{{app_client_id}}"&redirect_uri="https://yourdomain/sharepoint-response"&client_secret="{{app_client_secret}}"&code="{{code from above url}}"&grant_type=authorization_code"; getting token
Затем я выполняю все шаги из https://docs.microsoft.com/en-us/sharepoint/dev/apis/webhooks/lists/create-subscription
Теперь получаю:
"error_description" => "Invalid issuer or signature."