401 Unauthorized while subscribing to push notifications with Exchange service and OAuth

前端 未结 1 877
走了就别回头了
走了就别回头了 2021-01-16 01:51

I am trying to access EWS managed API (subscribe to push notifications) with oauth as below:

var authenticationTask = await authenticationContext.AcquireToke         


        
相关标签:
1条回答
  • 2021-01-16 02:17

    For those struggling with the same issue, we need to get the access token for the registered app by using a certificate (instead of doing it with client secret key). For more details on how to do it please see: https://blogs.msdn.microsoft.com/exchangedev/2015/01/21/building-daemon-or-service-apps-with-office-365-mail-calendar-and-contacts-apis-oauth2-client-credential-flow/

    0 讨论(0)
提交回复
热议问题