Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/18/2024 08:59 AM
Hi Team,
I need to integrate an application through REST protocol, But the application uses Form Data Authentication.
Like in Screenshot below
Once I hit this, it will give a Auth_token and I need to use the Auth_Token in the URL to fetch the User. Screenshot below. AuthToken will expire at some point in time.
How do I create a connection JSON for this? could you please provide a sample
09/18/2024 09:14 AM - edited 09/18/2024 09:16 AM
{
"authentications": {
"userAuth": {
"authType": "oauth2",
"url": "https://<domain name>/api/v18.2/auth",
"httpMethod": "POST",
"httpParams": {
"login": "<Username>",
"password": "<Password>"
},
"httpHeaders": {
"contentType": "application/x-www-form-urlencoded"
},
"httpContentType": "application/x-www-form-urlencoded",
"expiryError": "ExpiredAuthenticationToken",
"authError": [
"InvalidAuthenticationToken",
"AuthenticationFailed",
"FAILURE",
"INVALID_SESSION_ID"
],
"timeOutError": "Read timed out",
"errorPath": "errors.type",
"maxRefreshTryCount": 5,
"tokenResponsePath": "sessionId",
"tokenType": "Bearer",
"accessToken": "<access token>"
}
}
}
09/18/2024 09:14 AM
Hi @vivekrajan1 just the developer guide you can set content type as form
09/18/2024 12:21 PM
Hi @rushikeshvartak - Thank you for the sample ConnectionJson.
How do I pass the Auth_token(accessToken) in the 'ImportAccountEntJSON' as a parameter in the URL.
For Ex:
URL: https://example.com/xxx/yyy/users?auth_token=(pass AuthToken here)
below is the CURL command exported from postman.
09/18/2024 12:46 PM
${access_token}
09/19/2024 05:41 AM
Im facing problem regarding Auth_Token, could you please help me identify the issue.
In ImportAccountEntJSON -> URL section, I am trying to pass auth_token but EIC always passes hardcoded dummy value "abc123" in ${access_token}, like below
Actual URL - "url": "https://xxxx/xxxx/xxxx/xxxx/xxxxx?auth_token=${access_token}&per_page=2&page=4"
EIC pass dummy value - "url": "https://xxxx/xxxx/xxxx/xxxx/xxxxx?auth_token=abc123&per_page=2&page=4",
In Logs, im seeing, pullObjectsByRest - responseStatusCode ::401
in ConnectionJSON I tried below steps, but only 'Step 3' worked,
i. This approach did not work
"tokenResponsePath": "auth_token",
"tokenType": "auth_token",
"accessToken": "abc123"
2. This approach did not work
"tokenResponsePath": "auth_token",
"tokenType": "",
"accessToken": "abc123"
3. This approach worked
"tokenResponsePath": "auth_token",
"tokenType": "",
"accessToken": "Copy Pasted actual AccessToken"
Could you please help me identify why EIC is not passing Auth_token?
I attached Connection Json and ImportAccountEntJson and screenshot from postman that generates auth_token
09/19/2024 05:52 AM
Add test connection param in connection json and validate also confirm id hardcoded token works