Click HERE to see how Saviynt Intelligence is transforming the industry. |
01/14/2024 09:21 AM - last edited on 01/15/2024 11:14 PM by Sunil
Is it possible to put a post call inside testConnectionParams ?
I am using the below json.
{
"authentications": {
"acctAuth": {
"authType": "oauth2",
"url": "https://gtqaapi.multibankportal.com/auth/oauth/token ",
"httpMethod": "POST",
"httpHeaders": {
"Content-Type": "application/x-www-form-urlencoded",
"Authorization": "Basic ***********"
},
"httpParams": {
"username": "*********",
"password": "*******",
"grant_type": "password"
},
"properties": {
"userName": "*******",
"password": "***************"
},
"httpContentType": "application/x-www-form-urlencoded",
"expiryError": "Authentication failed",
"authError": [
"HTTP ERROR",
"USER_AUTHENTICATION_FAILED",
"PARTNER_AUTHENTICATION_FAILED",
"Authentication Failed",
"Authentication failed.",
"InvalidAuthenticationToken",
"AuthenticationFailed",
"invalid_client",
"Authentication_MissingOrMalformed",
"Authentication_ExpiredToken",
"HTTP ERROR: 401",
"401 Unauthorized",
"401",
"403",
"400"
],
"timeOutError": "Read timed out",
"errorPath": "errors.message",
"maxRefreshTryCount": 6,
"tokenResponsePath": "access_token",
"tokenType": "Bearer",
"accessToken": "testrandomvalue",
"retryFailureStatusCode": [
401,
400,
403,
500
],
"testConnectionParams": {
"http": {
"httpMethod": "POST",
"url": "https://gtqaapi.multibankportal.com/auth/oauth/token ",
"httpHeaders": {
"Authorization": "Basic *********************************",
"Content-Type": "application/x-www-form-urlencoded"
},
"httpParams": {
"grant_type": "urn:ietf:params:oauth:grant-type:jwt-bearer",
"assertion": "${access_token}",
"company_id": "C03763"
},
"properties": {
"userName": "delient",
"password": "*********************"
},
"httpContentType": "application/x-www-form-urlencoded"
},
"successResponses": {
"statusCode": [
200,
201,
200,
204
]
},
"unsuccessResponses": {
"statusCode": [
400,
403,
401,
404,
409,
501,
500
]
},
"errors": [
"Couldn't authenticate you"
],
"errorPath": "error"
}
}
}
}
This gives the below error.
2024-01-14/17:11:55.301 [{}] [https-jsse-nio-443-exec-155] ERROR rest.RestProvisioningService - Error while saving the Connection: groovy.lang.MissingMethodException: No signature of method: com.saviynt.provisoning.rest.RestUtilService.getDynamicBindString() is applicable for argument types: (java.util.LinkedHashMap, java.util.HashMap) values: [[grant_type:urn:ietf:params:oauth:grant-type:jwt-bearer, ...], ...]
Possible solutions: getDynamicBindString(java.lang.String, java.util.Map)
2024-01-14/17:11:55.302 [{}] [https-jsse-nio-443-exec-155] DEBUG println.PrintlnToLogger - Println :: [1;31m| Error [22;39mgroovy.lang.MissingMethodException: No signature of method: com.saviynt.provisoning.rest.RestUtilService.getDynamicBindString() is applicable for argument types: (java.util.LinkedHashMap, java.util.HashMap) values: [[grant_type:urn:ietf:params:oauth:grant-type:jwt-bearer, ...], ...]
[This message has been edited by moderator to mask sensitive info]
01/14/2024 09:22 AM
Any suggestions on mitigating this error ?
01/14/2024 05:25 PM
Please share curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ]
Hide confidential Information
01/15/2024 10:24 PM - last edited on 01/15/2024 11:16 PM by Sunil
Hi Rushikesh,
Please find the CURL command below.
01/15/2024 10:51 PM
Any specific reason why you want to make post call in test connection param
01/15/2024 11:38 PM
Hi,
I wanted to validate if my connection json is generating the access token or not.
I have to use the access token generated in the first call as an input parameter in the assertion attribute of the second call.
My connection json will have 2 calls, first one to generate access token, second one to generate another access token the second access token is used in createaccount, update account etc..
01/15/2024 11:39 PM
the second call is also a post call to generate a larger access token. So I want to check if my first api call is generating an access token or not.
01/15/2024 11:40 PM - last edited on 01/16/2024 06:04 AM by Sunil
I wanted to see if the below json is generating an access token or not.
{
"authentications": {
"acctAuth": {
"authType": "oauth2",
"url": "https://gtqaapi.multibankportal.com/auth/oauth/token",
"httpMethod": "POST",
"httpHeaders": {
"Content-Type": "application/x-www-form-urlencoded"
},
"httpParams": {
"client_id": "defauent",
"client_secret": "spring-securitynt-password1234",
"username": "************",
"password": "******",
"grant_type": "password"
},
"httpContentType": "application/x-www-form-urlencoded",
"expiryError": "Authentication failed",
"authError": [
"HTTP ERROR",
"USER_AUTHENTICATION_FAILED",
"PARTNER_AUTHENTICATION_FAILED",
"Authentication Failed",
"Authentication failed.",
"InvalidAuthenticationToken",
"AuthenticationFailed",
"invalid_client",
"Authentication_MissingOrMalformed",
"Authentication_ExpiredToken",
"HTTP ERROR: 401",
"401 Unauthorized",
"401",
"403",
"400"
],
"timeOutError": "Read timed out",
"errorPath": "errors.message",
"maxRefreshTryCount": 6,
"tokenResponsePath": "access_token",
"tokenType": "Bearer",
"accessToken": "Bearer abc",
"retryFailureStatusCode": [
401,
400,
403,
500
]
}
}
}
01/16/2024 05:45 AM
Add success response code