05/15/2023 06:55 AM
Hi,
Can someone please share working samples of the following :
Both the above samples are required for Azure AD connector. I am trying with the ones provided in Azure AD Integration Guide, but its NOT working.
Best Regards,
Varun
05/15/2023 01:05 PM
@varunpuri Are you seeing any errors in the logs? Can you provide the jsons you are using?
05/15/2023 10:53 PM
Try this connection Json :
{
"authentications": {
"userAuth": {
"authType": "oauth2",
"url": "https://login.microsoftonline.com/<tenantid>/oauth2/token",
"httpMethod": "POST",
"httpParams": {
"grant_type": "client_credentials",
"client_secret": "<client_secret>",
"client_id": "<client_id>",
"resource": "https://graph.microsoft.com/"
},
"httpHeaders": {
"contentType": "application/x-www-form-urlencoded"
},
"httpContentType": "application/x-www-form-urlencoded",
"expiryError": "ExpiredAuthenticationToken",
"authError": [
"InvalidAuthenticationToken"
],
"retryFailureStatusCode": [
401
],
"timeOutError": "Read timed out",
"errorPath": "error.code",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Bearer",
"accessToken": "Bearer xxxx"
},
"entAuth": {
"authType": "oauth2",
"url": "https://login.microsoftonline.com/<tenantid>/oauth2/token",
"httpMethod": "POST",
"httpParams": {
"grant_type": "client_credentials",
"client_secret": "<client_secret>",
"client_id": "<client_id>",
"resource": "https://graph.windows.net/"
},
"httpHeaders": {
"contentType": "application/x-www-form-urlencoded"
},
"httpContentType": "application/x-www-form-urlencoded",
"expiryError": "ExpiredAuthenticationToken",
"authError": [
"InvalidAuthenticationToken",
"Authentication_MissingOrMalformed"
],
"retryFailureStatusCode": [
401
],
"timeOutError": "Read timed out",
"errorPath": "odata~dot#error.code",
"maxRefreshTryCount": 3,
"tokenResponsePath": "access_token",
"tokenType": "Bearer",
"accessToken": "Bearer xxxxxx"
}
}
}