and more in a single search tool across platforms. Read the announcement here. |
10/17/2023 10:37 AM
Solved! Go to Solution.
10/17/2023 02:22 PM
@UdaySai : Issue is with authentication, Please check your connectionJSON, If possible please share your ConnectionJSON and sample postman output for connection to validate the same
10/18/2023 01:44 AM
Provisioning is working fine using the same connection json.
{
"authentications": {
"userAuth": {
"authType": "oauth2",
"url": "https://xxx/services/rest/auth/oauth2/v1/token",
"httpMethod": "POST",
"httpParams": {
"grant_type": "refresh_token",
"refresh_token": "xxxx"
},
"httpHeaders": {
"contentType": "application/x-www-form-urlencoded",
"Authorization": "Basic xxx"
},
"expiryError": "INVALID_SESSION_ID",
"authError": [
"INVALID_SESSION_ID"
],
"timeOutError": "Read timed out",
"retryFailureStatusCode": [
401,
403
],
"errorPath": "errorCode",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access token",
"tokenType": "Bearer",
"accessToken": "Bearer abcd"
}
}
}
Postman
10/18/2023 07:08 AM
@UdaySai : Try below JSON and see
{
"authentications": {
"userAuth": {
"authType": "oauth2",
"url": "https://xxx/services/rest/auth/oauth2/v1/token",
"httpMethod": "POST",
"httpParams": {
"grant_type": "refresh_token",
"refresh_token": "xxxx"
},
"httpHeaders": {
"contentType": "application/x-www-form-urlencoded",
"Authorization": "Basic xxx"
},
"expiryError": "INVALID_SESSION_ID",
"authError": [
"INVALID_SESSION_ID"
],
"timeOutError": "Read timed out",
"retryFailureStatusCode": [
401,
403
],
"errorPath": "errorCode",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Bearer",
"accessToken": "Bearer abcd"
}
}
}
10/18/2023 09:30 AM
Getting the same error -
2023-10-18 16:03:41,698 [quartzScheduler_Worker-5] DEBUG services.HttpClientUtilityService - connectionType: REST
2023-10-18 16:03:41,698 [quartzScheduler_Worker-5] DEBUG services.HttpClientUtilityService - connectionTimeoutConfig before guardRail validation: [connectionTimeout:10, readTimeout:60, writeTimeout:60, retryWait:2, retryCount:3]
2023-10-18 16:03:41,698 [quartzScheduler_Worker-5] DEBUG services.HttpClientUtilityService - Final connectionTimeoutConfig after guardRail validation: [connectionTimeout:10, readTimeout:60, retryCount:3, retryWait:2]
2023-10-18 16:03:41,698 [quartzScheduler_Worker-5] DEBUG services.HttpClientUtilityService - isFipsEnabled = false
2023-10-18 16:03:41,698 [quartzScheduler_Worker-5] DEBUG services.HttpClientUtilityService - getHttpClient - sslParams : null
2023-10-18 16:03:41,698 [quartzScheduler_Worker-5] DEBUG services.HttpClientUtilityService - getHttpClient - proxyParams : null
2023-10-18 16:03:41,699 [quartzScheduler_Worker-5] DEBUG services.HttpClientUtilityService - getHttpClient - sslSocketFactory : null
2023-10-18 16:03:41,700 [quartzScheduler_Worker-5] DEBUG services.HttpClientUtilityService - setting connection timeout to 10 seconds and request timeout to 60 seconds
2023-10-18 16:03:41,700 [quartzScheduler_Worker-5] DEBUG services.HttpClientUtilityService - getHttpClient - HttpClientBuilder.create().build() called.
2023-10-18 16:03:41,835 [quartzScheduler_Worker-5] DEBUG rest.RestUtilService - Got showLogs = true
2023-10-18 16:03:41,835 [quartzScheduler_Worker-5] DEBUG rest.RestProvisioningService - Got Webservice API Response: [headers:[Content-Type: application/vnd.oracle.resource+json; type=error; charset=UTF-8, Content-Length: 327, X-N-OperationId: 3e6a0892-789c-476a-b288-f22e1047e08a, NS_RTIMER_COMPOSITE: 366926454:706172746E6572733130332E70726F642D6672612D6575332E636F72652E6E732E696E7465726E616C:80, Strict-Transport-Security: max-age=31536000, Pragma: No-Cache, Cache-Control: No-Cache, Expires: 0, WWW-Authenticate: Bearer realm="7453737_SB2", error="invalid_token", error_description="Invalid login attempt.", P3P: CP="CAO PSAa OUR BUS PUR", Vary: User-Agent, Date: Wed, 18 Oct 2023 16:03:41 GMT, Connection: close, Akamai-GRN: 0.446adc17.1697645021.8504e841], responseText:{"type":"https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1","title":"Bad Request","status":400,"o:errorDetails":[{"detail":"Invalid login attempt. For more details, see the Login Audit Trail in the NetSuite UI at Setup > Users/Roles > User Management > View Login Audit Trail.","o:errorCode":"INVALID_LOGIN"}]}
, cookies:[], statusCode:400]
2023-10-18 16:03:41,835 [quartzScheduler_Worker-5] DEBUG rest.RestUtilService - pullObjectsByRest - responseStatusCode ::400
2023-10-18 16:03:41,836 [quartzScheduler_Worker-5] DEBUG rest.RestProvisioningService - Entered getResponseHeaders method
2023-10-18 16:03:41,836 [quartzScheduler_Worker-5] DEBUG rest.RestProvisioningService - responseError : null
2023-10-18 16:03:41,836 [quartzScheduler_Worker-5] DEBUG rest.RestProvisioningService - isAuthError: false
10/18/2023 11:26 AM - edited 10/18/2023 11:42 AM
@UdaySai : Hey I missed to add "httpContentType": "application/x-www-form-urlencoded". Can you try below. If still didn't work can you try hard coding accessToken with actual token and see if that works
{
"authentications": {
"userAuth": {
"authType": "oauth2",
"url": "https://xxx/services/rest/auth/oauth2/v1/token",
"httpMethod": "POST",
"httpParams": {
"grant_type": "refresh_token",
"refresh_token": "xxxx"
},
"httpHeaders": {
"contentType": "application/x-www-form-urlencoded",
"Authorization": "Basic xxx"
},
"httpContentType": "application/x-www-form-urlencoded",
"expiryError": "INVALID_SESSION_ID",
"authError": [
"INVALID_SESSION_ID"
],
"timeOutError": "Read timed out",
"retryFailureStatusCode": [
401,
403
],
"errorPath": "errorCode",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Bearer",
"accessToken": "Bearer abcd"
}
}
}
Another way to validate is please include testConnectionParams block in ConnectionJSON so that upon clicking save & test connection it will validate if authentication is working fine or not
12/11/2023 04:39 PM
Hi @UdaySai I am also working on RemoveAccessJSON . still, I am unable to figure out how to remove the role from the account.
this is what I tried so far but no luck. If have built the RemoveAccessJson, could you please share the removeAccessJson or help me
12/11/2023 05:08 PM
Hi @UdaySai JSON which I pasted in above. it is not working. Might be, you have marked the solution by mistake. I need your help. if you have removeAccessJSOn could you please share?
02/13/2024 05:23 AM