Using ADAL C# as Confidential User /Daemon Server /Server-to-Server - 401 Unauthorized

后端 未结 3 1837
眼角桃花
眼角桃花 2020-11-30 10:59

Refering to not answered Questions:

401- Unauthorized authentication using REST API Dynamics CRM with Azure AD

and

Dynamics CRM Online 2016 - Daemon

3条回答
  •  甜味超标
    2020-11-30 11:24

    Thanks IntegerWolf for the detailed post/answer. I already wasted a lot of time trying to connect to the CRM Web API without any luck, until I ran into your post!

    Please be aware that ClientId in the code sample is the ClientId provided when registering your application in AAD. At first my connection failed, because in the explanation the value for client_id is YourTenantGuid, so I used my Office 365 TenantId, but this should be your AAD application ClientId.

提交回复
热议问题