and more in a single search tool across platforms. Read the announcement here. |
11/08/2023 04:26 AM
Hello Everyone,
We are trying to read accounts from a rest based cloud app. The application is authenticated via Azure. The token type is bearer.
Following is the postman call for login
The get account api via postman works as follows and retuns recod successfully.
Standard cloud apps use the following format but here we pass access_token as Key and value as token
Hence I have used the following Connection json and accountimportjson. But is throws 401 un authorised. Has anyone worked on customized parameters?
Connection json:
11/08/2023 04:44 AM - edited 11/08/2023 05:31 AM
@Kanchan1 try with below connectionJSON
{
"authentications": {
"userAuth": {
"authType": "oauth2",
"showLogs": true,
"url": "https://xxxxxxxxx.onmicrosoft.com/oauth2/v2.0/token?p=xxxxxxx-signuporsignin",
"httpMethod": "POST",
"httpParams": {
"client_id": "xxxxxxxxxxxxxxxxx",
"client_secret": "xxxxxxxxxxxxxxxxxxxxxxxx",
"grant_type": "client_credentials",
"scope": "https://xxxxxxxxxxxxxx.com/x12yxxxxxxxxxxxxx/.default"
},
"httpHeaders": {
"contentType": "application/x-www-form-urlencoded"
},
"httpContentType": "application/x-www-form-urlencoded",
"expiryError": "ExpiredAuthenticationToken",
"authError": [
"SESSION_NOT_VALID",
"AuthenticationFailed",
"HTTP error code : 401",
"InvalidAuthenticationToken",
"Couldn’t authenticate you",
"401 Unauthorized"
],
"timeOutError": "Read timed out",
"errorPath": "error.code",
"maxRefreshTryCount": 2,
"tokenResponsePath": "access_token",
"tokenType": "Bearer",
"accessToken": "Bearer <token>",
"retryFailureStatusCode": [
401
]
}
}
}