I am trying to call a SOAP or REST endpoint for my demo environment. According to some msdn demonstrative documents, this should be possible.
I am using the default HTTP connector with the following parameters:
Method: POST
Uri: https://[aos].cloudax.dynamics.com/api/services/UserSessionService/AifUserSessionService/GetUserSessionInfo
Authentication: AD OAuth
Authority: https://login.windows.net/
Tenant: [tenant guid]
Audience: https://management.core.windows.net/
Client Id: [client id guid]
Secret: [secret guid]
The error I receive is as shown below:
{
"statusCode": 401,
"headers": {
"ms-dyn-fqhn": "demo-0-a16326fa-42f8-4ee4-b19b-a6fc657b0a1c",
"ms-dyn-namespace": "DynAXProd",
"ms-dyn-tenant": "default-lcs-a16326fa-42f8-4ee4-b19b-a6fc657b0a1c",
"ms-dyn-role": "demo",
"ms-dyn-aid": "9f1561ee-0ab3-0007-96cb-159fb30ad301",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "SAMEORIGIN",
"Date": "Tue, 08 Aug 2017 18:43:53 GMT",
"P3P": "CP=\"No P3P policy defined. Read the Microsoft privacy statement at go.microsoft.com/fwlink\"",
"Server": "Microsoft-IIS/8.5",
"WWW-Authenticate": "authorization_uri=\"login.windows.net/.../authorize\"",
"X-Powered-By": "ASP.NET",
"Content-Length": "0"
}
}
App registrations and api permissions have been setup correctly. Is there anything I might be missing?